There is a simple userbot for parsing tg channel.
Runs with a proxy for your region.
The bot exclusively looks at messages, ie:
client.iter_messages(channel)
The problem is as follows:
Every time the bot goes into a permanent ban when running the script a second time.
That is, I buy a tg account, run the userbot – everything works.
Further parsing can go any time, from a second to infinity, I will not get a ban.
But if I stop the script and start it again, I get banned.
I don’t understand why this happens and what can be done about it
Tried to terminate the bot with
client.disconnect()