Coder Social home page Coder Social logo

dporter419 / fanyi-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fakegit/fanyi_bot

0.0 0.0 0.0 253 KB

🤖 Telegram 上的谷歌翻译机器人,为全世界语言提供中文翻译。

Home Page: https://t.me/fanyi_bot

License: MIT License

Python 100.00%

fanyi-bot's Introduction

谷歌翻译机器人(fanyi_bot)

GitHub top language codebeat badge version License Served
为全世界语言提供中文翻译。
在 Telegram 上使用

如何使用?

  • 私聊机器人,自动翻译文字消息;
  • 群聊中添加机器人,使用命令翻译指定消息;
  • 任意聊天框,输入 @fanyi_bot 实时翻译。

最近更新

  • [2020.12.05] 彻底解决 API 问题
  • [2020.11.14] 脏解决 API 问题
  • [2020.08.11] 修复交互细节
  • [2020.08.05] 机器人现已无需管理员权限
  • [2020.08.04] 使用最新模型,提升翻译质量

如何部署到自己的服务器?

  • 按照 confi.template 文件的格式新建 config.ini 配置文件,将你的 Telegram Bot Token 放入该文件中
  • pip install -r requirements.txt 安装依赖 aiogram, termcolor, and googletrans
  • 执行 python3 main.py / 或后台执行 setsid python3 main.py

功能预览

  • 私聊或有管理员权限的群聊中直接翻译

  • 在任意聊天窗口 @fanyi_bot 通过 inline query 直接查询

代码依赖

  • Python >= 3.7
  • aiogram Is a pretty simple and fully asynchronous framework for Telegram Bot API written in Python 3.7 with asyncio and aiohttp.
  • googletrans (unofficial) Googletrans: Free and Unlimited Google translate API for Python.
  • termcolor (fork version) fork of termcolor Python library

fanyi-bot's People

Contributors

reycn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.