{"id":13824826,"url":"https://github.com/EverythingSuckz/GeminiTelegramBot","last_synced_at":"2025-07-08T20:32:18.280Z","repository":{"id":242012274,"uuid":"807315368","full_name":"EverythingSuckz/GeminiTelegramBot","owner":"EverythingSuckz","description":"Telegram bot that uses Gemini multimodel API","archived":false,"fork":false,"pushed_at":"2024-05-31T19:18:07.000Z","size":60,"stargazers_count":8,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-03T20:54:40.553Z","etag":null,"topics":["ai","bot","chatbot","gemini","gemini-api","pyrogram","python","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EverythingSuckz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-28T21:39:14.000Z","updated_at":"2025-03-18T14:04:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"d3dd44a2-d6f6-4636-a62d-0ccaa30b02d8","html_url":"https://github.com/EverythingSuckz/GeminiTelegramBot","commit_stats":null,"previous_names":["everythingsuckz/geminitelegrambot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EverythingSuckz/GeminiTelegramBot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EverythingSuckz%2FGeminiTelegramBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EverythingSuckz%2FGeminiTelegramBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EverythingSuckz%2FGeminiTelegramBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EverythingSuckz%2FGeminiTelegramBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EverythingSuckz","download_url":"https://codeload.github.com/EverythingSuckz/GeminiTelegramBot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EverythingSuckz%2FGeminiTelegramBot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264343714,"owners_count":23593776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","bot","chatbot","gemini","gemini-api","pyrogram","python","telegram-bot"],"created_at":"2024-08-04T09:01:10.081Z","updated_at":"2025-07-08T20:32:16.977Z","avatar_url":"https://github.com/EverythingSuckz.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Gemini Telegram Bot\nA telegram bot that interacts with Google's Gemini API and can be hosted on serverless functions.\n\n# Demo\nA working demo can be found at [@NotAIChatBot](https://telegram.dog/NotAIChatBot).\n\n# Requirements\n\n#### Telegram API ID and Hash\nGet your API ID and Hash from [my.telegram.org](https://my.telegram.org).\n#### Telegram Bot API Token\nCreate a bot and get the bot token from [@BotFather](https://telegram.dog/BotFather).\n#### Python 3.8+\nInstall Python 3.8 or higher from [here](https://www.python.org/downloads/)\n#### Gemini API Key\nGet your Gemini API key from [here](https://makersuite.google.com/)\n#### PostgreSQL Database (optional)\nInstall PostgreSQL from [here](https://www.postgresql.org/download/) or use a managed database service like [ElephantSQL](https://www.elephantsql.com/)\n\n# Environment Variables\n\n- `API_ID` - Your [API ID](#telegram-api-id-and-hash)\n- `API_HASH` - Your [API Hash](#telegram-api-id-and-hash)\n- `BOT_TOKEN` - Your [bot token](#telegram-bot-api-token)\n- `GEMINI_API_KEY` - Your [Gemini API key](#gemini-api-key)\n- `DATABASE_URI` - Your PostgreSQL database URI (optional)\n\n\u003e **NOTE:** By default, the bot uses a SQLite database.\n\n# Hosting\n# Self Hosting\n\n```bash\ngit clone https://github.com/EverythingSuckz/GeminiTelegramBot\ncd GeminiTelegramBot\npython3 -m venv venv\nsource venv/bin/activate # Linux\n.\\venv\\Scripts\\activate # For windows\npip install -r requirements.txt\npython -m bot\n```\n\n# To Do\n- [ ] Reactions\n- [ ] Give the bot context of chat stickers\n- [ ] Add more features\n- [ ] Rewrite the code to [hydrogram](https://docs.hydrogram.org)\n- [ ] Optimize code\n\n_Based on [pyrogram](https://github.com/pyrogram/pyrogram)._\n\n**Give a ⭐ if you like this project!**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEverythingSuckz%2FGeminiTelegramBot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEverythingSuckz%2FGeminiTelegramBot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEverythingSuckz%2FGeminiTelegramBot/lists"}