- Having a US VISA appointment scheduled already
- Google Chrome installed (to be controlled by the script)
- Python v3 installed (for running the script)
- Open the Telegram App and search for @BotFather and open it
- Click on start to get detailed information and commands for creating bot, deleting the bot and etc …
- Type or select /newbot to create a bot
- Now it will send you a message, that to choose a name for your bot and type your own bot name (Eg: chat,chitti,Alex)
- Now it will ask you to enter the username for your bot with the given condition like Alex_bot or Chat_bot or AlexBot. If the username is already take try it using different name but it should satisfy the condition
- When it accepts your username it will send you a API token key like
142523231:AEX************
- In that message at top, you will see a link like t.me/AlexBot this will redirect to your bot chat, then click on /start to start chat with the bot
- Add the token ID you received in previous step in
config.ini
- Look for @userinfobot on the Telegram
- Press /start.
- It will provide you with a User ID. Add it to
config.ini
- Add your required information in the
config.ini
file.The SHOW_GUI should be False if you are using script in a remote terminal (e.g. Amazon EC2) which can not have GUI elements.
- Install the required python packages:
pip3 install -r requirements.txt
- Simply run
python3 visa1.py
If running on a remote terminal that does not have GUI (e.g. Amazon EC2), use
screen
command first to run it on a separate screen. PressCTRL+a
and thend
to detach from the screen, once the script is running. The script will keep running in the background. Usescreen -ls
to get your screen number. You can go back to screen by usingscreen -r 12345
(replace 12345 with your actual screen number). - That's it!
Thanks to @yaojialyu & @cejaramillof for creating the initial versions to adapt.