{"id":16545110,"url":"https://github.com/reycn/fanyi-bot","last_synced_at":"2025-09-19T04:33:01.713Z","repository":{"id":42448186,"uuid":"237237860","full_name":"reycn/fanyi-bot","owner":"reycn","description":"🤖 Telegram 上的谷歌翻译机器人，为全世界语言提供中文翻译。","archived":false,"fork":false,"pushed_at":"2023-05-28T02:38:32.000Z","size":248,"stargazers_count":61,"open_issues_count":9,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T23:25:17.744Z","etag":null,"topics":["googletranslate","python3","telegram-bot","translation"],"latest_commit_sha":null,"homepage":"https://t.me/fanyi_bot","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/reycn.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}},"created_at":"2020-01-30T15:03:30.000Z","updated_at":"2024-12-05T11:22:23.000Z","dependencies_parsed_at":"2024-10-28T10:17:35.805Z","dependency_job_id":"058a621d-7aa1-48c5-8600-459db8a02301","html_url":"https://github.com/reycn/fanyi-bot","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"9e45853dac5938b875373af2a0f1cd19c3a102f6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reycn%2Ffanyi-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reycn%2Ffanyi-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reycn%2Ffanyi-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reycn%2Ffanyi-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reycn","download_url":"https://codeload.github.com/reycn/fanyi-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233553762,"owners_count":18693313,"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":["googletranslate","python3","telegram-bot","translation"],"created_at":"2024-10-11T19:05:50.004Z","updated_at":"2025-09-19T04:32:56.381Z","avatar_url":"https://github.com/reycn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 谷歌翻译机器人(fanyi_bot)\n\n![GitHub top language](https://img.shields.io/github/languages/top/reycn/fanyi_bot)\n[![codebeat badge](https://codebeat.co/badges/660fd5c4-7218-4408-b57a-94877e55ffdb)](https://codebeat.co/projects/github-com-reycn-fanyi_bot-master) ![version](https://img.shields.io/badge/version-2.4-red) ![License](https://img.shields.io/badge/license-MIT-000000.svg) [![Served](https://img.shields.io/badge/dynamic/json?color=27ae60\u0026label=served\u0026query=%24%5B0%5D.points%5B0%5D.value\u0026suffix=%20times\u0026url=https%3A%2F%2Fwww.stathat.com%2Fx%2FTBKGENBCfgrMmHY4GCpo%2Fdata%2FYTlb%3Fsummary%3D10y10y)](https://www.stathat.com/s/9xOlCBfnl1kj)  \n为全世界语言提供中文翻译。  \n[在 Telegram 上使用](https://t.me/fanyi_bot)\n\n## 如何使用?\n\n- 私聊机器人，自动翻译文字消息；\n- 群聊中添加机器人，使用命令翻译指定消息；\n- 任意聊天框，输入 @fanyi_bot 实时翻译。\n\n\n## 最近更新\n- [2020.12.05] 彻底解决 API 问题\n- [2020.11.14] 脏解决 API 问题\n- [2020.08.11] 修复交互细节\n- [2020.08.05] 机器人现已无需管理员权限\n- [2020.08.04] 使用最新模型，提升翻译质量\n\n## 如何部署到自己的服务器？\n\n- 按照 `confi.template` 文件的格式新建 `config.ini` 配置文件，将你的 [Telegram Bot Token](https://core.telegram.org/bots#6-botfather) 放入该文件中\n- `pip install -r requirements.txt` 安装依赖 `aiogram`, `termcolor`, and `googletrans`\n- 执行 `python3 main.py` / 或后台执行 `setsid python3 main.py`\n\n## 功能预览\n\n- 私聊或有管理员权限的群聊中直接翻译\n\n  \u003cimg src=\"https://github.com/reycn/fanyi_bot/blob/master/res/chat.jpg?raw=true\" width=\"300\"\u003e\u003c/img\u003e\n\n- 在任意聊天窗口 @fanyi_bot 通过 inline query 直接查询\n\n  \u003cimg src=\"https://github.com/reycn/fanyi_bot/blob/master/res/inline.jpg?raw=true\" width=\"300\"\u003e\u003c/img\u003e\n\n## 代码依赖\n\n- Python \u003e= 3.7\n- [aiogram](https://github.com/aiogram/aiogram) Is a pretty simple and fully asynchronous framework for Telegram Bot API written in Python 3.7 with asyncio and aiohttp.\n- [googletrans](https://github.com/ssut/py-googletrans) (unofficial) Googletrans: Free and Unlimited Google translate API for Python.\n- [termcolor](https://github.com/hfeeki/termcolor) (fork version) fork of termcolor Python library\n\n## 感谢\n- Supprot from [Cloudflare](https://cloudflare.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freycn%2Ffanyi-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freycn%2Ffanyi-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freycn%2Ffanyi-bot/lists"}