Gemini Telegram Bot is crafted in Python, leveraging the telebot
library for Telegram interactions, aiohttp
for
asynchronous API communication, and dotenv
for efficient environment variable management. It's designed to process
both text and image messages, offering Markdown formatted responses and efficient API communication for varied
functionalities.
- Python 3.x
telebot
libraryaiohttp
librarypython-dotenv
library
- Clone the repository or download the Gemini Bot code.
- Install the required packages:
pip install pyTelegramBotAPI aiohttp python-dotenv
- Create a
.env
file containing your Telegram bot token (TELEGRAM_BOT_TOKEN
), the base API URL (BASE_API_URL
), and the API key (API_KEY
).
- Launch the bot:
python main.py
- Engage with the bot on Telegram by sending either text or photo messages.
- Processes both text and photo messages.
- Supports Markdown for enhanced message presentation.
- Asynchronous handling of API requests for smooth operation.
- Customizable API integration for a range of functionalities.
- Special command recognition (e.g.,
/delete
,/clear
).
For optimal functionality, ensure a valid Telegram bot token and a properly configured API service.