Extension for tqdm progressbar in Telegram
Now the project can not be found in PyPI
But you can install from git:
pip install git+https://github.com/ermakovpetr/tg_tqdm
import time
from tg_tqdm import tg_tqdm
for _ in tg_tqdm(range(1000), TELEGRAM_BOT_TOKEN, CHAT_ID):
time.sleep(0.1)
You can use this from different python scripts in parallel
You must create a bot that will send you the progress bar. But it's easy!
- TELEGRAM_BOT_TOKEN
-
Find @BotFather in Telegram
-
Follow the instructions to create a new bot. Video guide:
in video my TELEGRAM_BOT_TOKEN is
639207352:AAFJKonqGVcHIkMHLm46h1UVH7mtU4xJD70
- CHAT_ID
- Open the chat with your new bot
- Write to him
/start
and one more message - Run this code (where TELEGRAM_BOT_TOKEN from prev step)
import telepot
bot = telepot.Bot(TELEGRAM_BOT_TOKEN)
bot.getUpdates()[0]['message']['chat']['id']
- Result is you CHAT_ID