Example Telegram bot made for an article published in Kvantti I/19.
Python (3.X preferred) and PIP.
$ pip install python-telegram-bot
Create your bot using @BotFather. Save the bot's token to an ENV variable with
$ export TG_TOKEN="yourtokenhere"
$ python bot.py
You may leave the script running for example by using screen
.
$ screen -S tgbot
Run the script and exit by pressing ctrl + a
then d
.
Continue with
$ screen -dr tgbot