A Telegram Bot using Gemini API
- Install dependencies
pip install -r requirements.txt
- Obtain Telegram Bot API at BotFather
- Get Gemini API keys from Google AI Studio
- To run the bot, execute:
python main.py ${Telegram Bot API} ${Gemini API keys}
Run the following command:
docker run -d -e TELEGRAM_BOT_API_KEY={replace with your Telegram Bot API} -e GEMINI_API_KEYS={replace with your Gemini API keys} qwqhthqwq/gemini_telegram_bot:latest
Run the following command:
docker run -d -e TELEGRAM_BOT_API_KEY={replace with your Telegram Bot API} -e GEMINI_API_KEYS={replace with your Gemini API keys} qwqhthqwq/gemini_telegram_bot_arm:latest
Click on the button below for a one-click deployment.
- If you want to communicate with the bot in a group, your chat must start with '/gemini'.
- If you are having a private chat with the bot, you can directly send what you want.
- You can use the '/clear' command to delete the current conversation history.