{"id":20660874,"url":"https://github.com/abhithemodder/gemini-ai-telegram","last_synced_at":"2025-08-16T08:11:31.239Z","repository":{"id":213083963,"uuid":"732922428","full_name":"AbhiTheModder/gemini-ai-telegram","owner":"AbhiTheModder","description":"Pyrogram(Pyrofork) Based Python script for Telegram Userbots and Bots","archived":false,"fork":false,"pushed_at":"2024-09-30T18:49:08.000Z","size":49,"stargazers_count":25,"open_issues_count":0,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T18:17:11.494Z","etag":null,"topics":["gemini","gemini-api","google-generative-ai","hacktoberfest","pyrofork","pyrogram","pyrogram-bot","pyrogram-userbot","pyrogram-userbotplugin","telegram-bot","telegram-userbot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AbhiTheModder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2023-12-18T07:02:40.000Z","updated_at":"2025-03-01T00:18:45.000Z","dependencies_parsed_at":"2023-12-20T13:32:47.626Z","dependency_job_id":"b3cdb0a7-372a-454d-852c-6c5760824870","html_url":"https://github.com/AbhiTheModder/gemini-ai-telegram","commit_stats":null,"previous_names":["abhithemodder/gemini-ai-telegram"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/AbhiTheModder/gemini-ai-telegram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbhiTheModder%2Fgemini-ai-telegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbhiTheModder%2Fgemini-ai-telegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbhiTheModder%2Fgemini-ai-telegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbhiTheModder%2Fgemini-ai-telegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbhiTheModder","download_url":"https://codeload.github.com/AbhiTheModder/gemini-ai-telegram/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbhiTheModder%2Fgemini-ai-telegram/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270684384,"owners_count":24627783,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["gemini","gemini-api","google-generative-ai","hacktoberfest","pyrofork","pyrogram","pyrogram-bot","pyrogram-userbot","pyrogram-userbotplugin","telegram-bot","telegram-userbot"],"created_at":"2024-11-16T19:06:20.727Z","updated_at":"2025-08-16T08:11:31.217Z","avatar_url":"https://github.com/AbhiTheModder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gemini-ai-telegram\n\u003cp align=center\u003e\n\u003cimg src=\"https://github.com/AbhiTheModder/gemini-ai-telegram/assets/85984486/710e32e6-3751-4cc9-b846-f17367076962\" width=500 height=300\u003e\n\n![GitHub Repo stars](https://img.shields.io/github/stars/AbhiTheModder/gemini-ai-telegram)\n\n   **Pyrogram(Pyrofork) Based Python script for Telegram Userbots and Bots**\n\u003c/p\u003e\n\n### 📹 You can checkout the demo video:\n- Using for bots: [Here](https://x.com/Qbtaumai/status/1736681149047726176?s=20)\n- Using as UserBot: [Here](https://x.com/Qbtaumai/status/1736681423703351629?s=20)\n\n# 🚀 Demo\n**Try it Out in Telegram:** [Here](https://t.me/gemini_testbot)\n\n## ☁️ Cloud Host:\n\n\u003ca href=\"https://app.koyeb.com/deploy?type=git\u0026repository=github.com/AbhiTheModder/gemini-ai-telegram\u0026branch=main\u0026name=gemini\"\u003e\u003cimg src=\"https://www.koyeb.com/static/images/deploy/button.svg\"\u003e\n\n## 🐋 Docker:\n**[Instructions](docker.md)**\n\n## 📦 Requirements:\n- Python \u003e=3.9 [Best if \u003e=python3.11]\n- Get API_KEY : [Obtain an API key from AI Studio](https://makersuite.google.com/app/apikey)\n- Get BOT_TOKEN of your bot from [@BotFather](https://t.me/botfather)\n- Get API_ID and API_HASH from my.telegram.org -\u003e `Api development tools` option\n- pyrofork : `pip install pyrofork`\n- google-generativeai : `pip install google-generativeai`\n- PIL : `pip install Pillow` `# Only if you want to use 'aimage.py/google-pro-vision' model`\n\n## 🗒️ Note:\n **Users in termux may face issue with installation of `google-generativeai`**\n- To fix it install  these libraries first:\n- `pkg update \u0026\u0026 pkg upgrade -y`\n- `pkg install python`\n- `pkg install openssl zlib c-ares -y`\n- Install `grpcio` through below command:\n ```\nGRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=1 GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 GRPC_PYTHON_BUILD_SYSTEM_CARES=1 CFLAGS+=\" -U__ANDROID_API__ -D__ANDROID_API__={YOUR API LEVEL} -include unistd.h\" LDFLAGS+=\" -llog\" pip install grpcio\n```\n**🗒️Note:** Make sure to put your own `ANDROID_API` to which your device/android OS version sdk is on(based)\n- OR If you're too lzy to compile yourself and your API LEVEL is 33(Android OS: 13), Lucky You because I've pushed release of compiled wheels in [releases](https://github.com/AbhiTheModder/gemini-ai-telegram/releases/) section of this repo :D\n\nOR Through `TUR` Repo:\n```shell\npython -m pip install grpcio --extra-index-url https://termux-user-repository.github.io/pypi/\n```\n\n- Now install `google-generativeai`:\n  ```\n  pip install google-generativeai\n  ```\n\n# 🏃 Usage:\n- Except for Termux users simply `pip install -r requirements.txt` is enough\n- AGAIN make sure to get your api keys :D\n- **Userbots:**\n  Use files starting with `ub`, Fill the keys and you're good to go\n- **Simple Bots:**\n  Use files starting with `bot`, Fill the keys and you're good to go\n\n  - You can also use `botmerged.py` if you want to integrate both models to your bot\n- **Group Bot**\n  Use file starting with `botmrg_grp.py`\n  - It has feature of allowing use in private also and without commands allowing user to interact like chatting with someone\n\n## TODO\n× Chat History Support\n\n## 💖 Like my work?\nThis project needs a ⭐ from you. Don't forget to leave a ⭐.    \n\n## 👨‍💻 CREDITS:\n- [Pyrofork](https://github.com/Mayuri-Chan/pyrofork/)\n- [GeminiAi](https://blog.google/technology/ai/google-gemini-ai/)\n- Myself :D\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhithemodder%2Fgemini-ai-telegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhithemodder%2Fgemini-ai-telegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhithemodder%2Fgemini-ai-telegram/lists"}