Reproduction of https://github.com/gotd/td/issues/1030
Required environment variables:
-
SESSION_FILE
: path to where session file will be stored -
BOT_TOKEN
: bot token from BotFather (can be new bot) -
APP_ID
: app_id of Telegram app -
APP_HASH
: app_hash of Telegram app
- Run
go run .
in this directory - Wait
- After ~2700 requests, connection will be closed
- Read logs from debug.log file