Skip to content

Translator bot for telegram that can translate messages from any language to English!

License

Notifications You must be signed in to change notification settings

gauthumj/TranslatoBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TranslatoBot

Translator bot for telegram that can translate messages from any language to english !

Working

The main modules are requests for accessing the telegram API for bots, googletrans for translating from any language to english and json to read the data returned from the API. The translato class takes care of reading the token from the config.cfg file, getting updates from the bot API and writing the reply back to user using the chat id through the API.

NOTE: the googletrans module is unstable and its advisable to install it using : pip install git+https://github.com/BoseCorp/py-googletrans.git --upgrade

it also times out the server after inactivity or returns None requiring the server to be restarted. This has been fixed by using subprocess.Popen to run the server.py file. when an error occurs due to googletrans, the server will be automatically restarted.

Translato in action

alt text

About

Translator bot for telegram that can translate messages from any language to English!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages