Skip to content

AJBotVerse/translator-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translator Bot

A language translating bot that can translate message in other preferred language.

Whom can it help?

This bot can help two people who don't have common language or if they have but they are not fluent in that common language.

For example, You find a friend on internet who speak some foreign language(that you don't understand),and you both(or either you or your friend) have little problem in English. So Now how will you chat with each other? Learn english(or each other's language), An excellent option, but of course it will take time.

So for that problem this bot is introduced.

Environment Variables

For GROUP_USER_DATA, read it carefully. Create a dictionary or json data, and add data like this

Syntax Below:-

{
    GroupId1 : {
        userid1 : lang1,
        userid2 : lang2,
        userid3 : lang3,
        ....
    },
    GroupId2 : {
        userid1 : lang1,
        userid2 : lang2,
        userid3 : lang3,
        ....
    },
    ....
}

For Example,

{
    -610274425 : {
        5105154963 : 'hi',
        4175164933 : 'eng'
    },
    -100610274425: {
        2125464768 : 'ru',
        3135566963 : 'eng'
    }
}

Now in this example, In group -610274425, user with userid 5105154963, his message will translate to hindi,

And user with userid 4175164933, his message will translate to english.

Hope you understand it.

Direct Deploy

Railway

Deploy on Railway

Heroku

Deploy

Credits

A Huge thanks to @lushan88a for google_trans_new

About

Telegram Bot for translating messages.

Resources

License

Stars

Watchers

Forks

Languages