Skip to content

electr1fy0/GPT-Telegram-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GPT-Telegram-Bot

Telegram bot that reponds through the Gemini API. Python script utilizes python-telegram-bot.

Setup

  1. Install python-telegram-bot using pip install python-telegram-bot.
  2. Create a bot using @botfather inside Telegram app.
  3. Paste bot's 'username' and 'token' in the Python script. Test basic commands to make sure things are alright.
  4. Create Gemini API key using ai.google.dev. Paste the key in the script.
  5. Rejoice!

Usage

  1. Use the start command to start the bot and it should start working.
  2. To get a response in supergroups, either tag its username directly or use the word 'mirror' in your message.
  3. To make it respond using Gemini, use the word 'gen' in your message. The requirement of 'gen' has been made so that someone does not accidently misuse their API key and incur charges.

About

Telegram bot that reponds through Gemini API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages