https://github.com/everythingsuckz/geminitelegrambot
Telegram bot that uses Gemini multimodel API
https://github.com/everythingsuckz/geminitelegrambot
ai bot chatbot gemini gemini-api pyrogram python telegram-bot
Last synced: 3 months ago
JSON representation
Telegram bot that uses Gemini multimodel API
- Host: GitHub
- URL: https://github.com/everythingsuckz/geminitelegrambot
- Owner: EverythingSuckz
- Created: 2024-05-28T21:39:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-31T19:18:07.000Z (over 1 year ago)
- Last Synced: 2025-07-18T09:58:00.406Z (3 months ago)
- Topics: ai, bot, chatbot, gemini, gemini-api, pyrogram, python, telegram-bot
- Language: Python
- Homepage:
- Size: 58.6 KB
- Stars: 8
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gemini Telegram Bot
A telegram bot that interacts with Google's Gemini API and can be hosted on serverless functions.# Demo
A working demo can be found at [@NotAIChatBot](https://telegram.dog/NotAIChatBot).# Requirements
#### Telegram API ID and Hash
Get your API ID and Hash from [my.telegram.org](https://my.telegram.org).
#### Telegram Bot API Token
Create a bot and get the bot token from [@BotFather](https://telegram.dog/BotFather).
#### Python 3.8+
Install Python 3.8 or higher from [here](https://www.python.org/downloads/)
#### Gemini API Key
Get your Gemini API key from [here](https://makersuite.google.com/)
#### PostgreSQL Database (optional)
Install PostgreSQL from [here](https://www.postgresql.org/download/) or use a managed database service like [ElephantSQL](https://www.elephantsql.com/)# Environment Variables
- `API_ID` - Your [API ID](#telegram-api-id-and-hash)
- `API_HASH` - Your [API Hash](#telegram-api-id-and-hash)
- `BOT_TOKEN` - Your [bot token](#telegram-bot-api-token)
- `GEMINI_API_KEY` - Your [Gemini API key](#gemini-api-key)
- `DATABASE_URI` - Your PostgreSQL database URI (optional)> **NOTE:** By default, the bot uses a SQLite database.
# Hosting
# Self Hosting```bash
git clone https://github.com/EverythingSuckz/GeminiTelegramBot
cd GeminiTelegramBot
python3 -m venv venv
source venv/bin/activate # Linux
.\venv\Scripts\activate # For windows
pip install -r requirements.txt
python -m bot
```# To Do
- [ ] Reactions
- [ ] Give the bot context of chat stickers
- [ ] Add more features
- [ ] Rewrite the code to [hydrogram](https://docs.hydrogram.org)
- [ ] Optimize code_Based on [pyrogram](https://github.com/pyrogram/pyrogram)._
**Give a ⭐ if you like this project!**