{"repo":"H-T-H/Gemini-Telegram-Bot","free":true,"listed":false,"github":"https://github.com/H-T-H/Gemini-Telegram-Bot","clone":"git clone https://github.com/H-T-H/Gemini-Telegram-Bot.git","description":"用Telegram与Gemini API交互｜Interact with the Gemini API via Telegram.","language":"Python","stars":182,"topics":["gemini-api","python-script","telegram-bot","telegram-bot-api","gemini"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"Gemini Telegram Bot 使用Telegram与Gemini API交互[[English ducument]](https://github.com/H-T-H/Gemini Telegram Bot/blob/main/README en.md) Demo 点这里 如何安装 (1) Linux系统 1. 安装依赖 2. 在BotFather获取Telegram Bot API 3. 在Google AI Studio获取Gemini API keys 4. 获取你的 Telegram user id 作为管理员 ID 5. 运行机器人，执行以下命令： 默认会使用 data/bot.db 保存用户选择的模型和最近聊天记录。你也可以通过 --db-path 指定数据库路径。 (2)使用 Docker 部署 使用构建好的镜像 自行构建 1. 在BotFather获取Telegram Bot API 2. 在Google AI Studio获取Gemini API keys 3. 克隆项目 4. 进入项目目录 5. 构建镜像 6. 运行镜像 使用方法 1. 私聊中直接发送你的问题即可 2. 群组中使用 /gemini +你的问题 ，支持图片 3. 删除对话的历史记录请使用 /clear 4. 选择或切换调用的模型请使用 /model 5. 未授权用户首次使用会自动提交访问申请，管理员可通过私聊按钮批准或拒绝 6. 管理员可使用 /access 查看已授权用户，并通过按钮撤销授权 7. 管理员可使用 /accessrequest 开关新的授权申请 参考信息 1. https://github.com/yihong0618/tg bot collections 2. https://github.com/yym68686/md2tgmd Star History","default_branch":null,"files":null,"tree":[],"storefront":"/r/H-T-H","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/H-T-H/Gemini-Telegram-Bot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}