Send Animation messages and translate texts from other languages via your account in telegram white telegram client bot.
(Download or Copy) main.py and save it in a directory... example directory: /path/to/file/main.py
You Need to Install python3 + and set your python env-variables...
(if you check the add to path in installation it will be fixed after re-start)
Python 3.5 or newer Versions
Run this Commands Throw CMD(WINDOWS) or Terminal(LINUX):
if your command dont work choose other command...(commands are seprated by or)
(You should be connected to Internet network Connection to download and Install this Packages)
pip install asyncio
pip install python-telegram-bot
pip install telethon
pip install googletrans
or
py -m pip install asyncio
py -m pip install python-telegram-bot
py -m pip install telethon
py -m pip install googletrans
You should get api from telegram web site by following steps:
1-
Goto https://my.telegram.org/
Login to your Telegram account with the phone number of the developer account to use.
Click under API Development tools.
A Create new application window will appear. Fill in your application details. There is no need to enter any URL, and only the first two fields (App title and Short name) can currently be changed later.
Click on Create application at the end. Remember that your API hash is secret and Telegram won’t let you revoke it. Don’t post it anywhere!
Copy and Save your API-id and API-hash
2- Now go to t.me/userinfobot and start the bot...
you'll get a message like this:
Id: 401165773
First: ฅli
Lang: en
copy you Id Number and save it...
3- We should edit the source code... open the file whithe a text Editor(Recommended to Use ATOM, Pycharm, VSCODE, SUBLIME)
You Can find class Bot in line 13:
class Bot:
api_id = 0
api_hash = ""
admin = 0
translator = Translator(service_urls=[
'translate.google.com',
'translate.google.co.kr',
])
change api-id to your saved api-id(integer format) [got to step 1]
change api-hash to your saved api-hash(string format) [got to step 1]
change admin to your saved Id from https://t.me/userinfobot (integer format) [got to step 2]
Example:
class Bot:
api_id = 122246935
api_hash = "0efadaw22611667esfsfbbf2b5f65de39e2awb11b"
admin = 401165773
translator = Translator(service_urls=[
'translate.google.com',
'translate.google.co.kr',
])
Now Save the code By Ctrl+S...
4 - Now If you're in Filtered telegram location, you should connect to VPN, DNS to Bypass filtering...
5 - Run this Commands Throw CMD(WINDOWS) or Terminal(LINUX):
if your command dont work choose other command...(commands are seprated by or)
( /path/to/file/main.py is my example file location... you should put your file location instead )
python /path/to/file/main.py
or
py /path/to/file/main.py
6- Now it Need Your phone Number... You Shoud Put it with this Fomat:
+Country-Code Phone Number
For Example This is For Iranian Users:
+989123456789
Telegram Will Send You Five-Digits as Code and you should put it...
If you have tow-step-Verfiacation You Should Enter Your Second Password... It wont show you the password in Terminal(or CMD)...
7- Congratulation! You're Logged in Successfully!
Send this text as Message in Telegram
ping
if It gets Editted to:
pong
it shows that you're Connected Successfully!
As it Knowned... Animations are frames of actions that build effects or story...
In Texts We Can Animate Our Text Messages...
Effects:
1-Normal Effect:
you can send Message with this format:
normal
this is your
text messages...
it Can be in any formats and contain digits,emojis and etc
and be more than one or tow line
Example:
normal
Hello
the text will be Eddited in This Way:
H ---> He ---> Hel ---> Hell ---> Hell ---> Hello
2-Type Effect:
you can send Message with this format:
type
this is your
text messages...
it Can be in any formats and contain digits,emojis and etc
and be more than one or tow line
Example:
type
Hello
the text will be Eddited in This Way:
H| ---> He| ---> Hel| ---> Hell| ---> Hello| ---> Hello
you can build animations by Emojis:)
you can get animation names by sending thos message:
animation help
and you can get animation names...
your emoji animation message should be in this format:
animation_name counts_of_replays
example:
moon 10
You Can Translate from any other languages to Persian or English...
You can translate persian to English...
You Can Translate Finglish to Persian...
It works with Auto-Language-Detection
Follow the tips:
1- Translate Replied Message:
first reply message
the send message with this format:
translate to language_name
availble language_name s: fa, en
Example:
Reply message then:
translate to fa
It will be editted to the translated text...
2- Translate your Text:
you should send message with this format:
translate to language_name
this is your texts it can contain emojis,digits,...
and it can be more thn one or tow lines...
example
translate to fa
Hi Guys!
How Are you?
Version 1.0.1
- Ali Sadafi - Initial work - GitHUB
- Telethon - V 1.14.0 - GitHUB - Documentation
- GoogleTrans - V 3.0.0 - Documentation
Lets Pray for me and Star the project and follow me instead paying...