Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

telethon.errors.rpcerrorlist.FloodWaitError: A wait of 41548 seconds is required (caused by InviteToChannelRequest)

I need to invite one of my groups members into channel. But I have a little issue on my python script. Please, can you help me?

this is exception

telethon.errors.rpcerrorlist.FloodWaitError: A wait of 41548 seconds is required (caused by InviteToChannelRequest)

#this is my part of python script (channel is my target channel, users is list of users)    
client(InviteToChannelRequest(channel, users))
like image 510
Nyamkhuu Buyanjargal Avatar asked Oct 25 '25 05:10

Nyamkhuu Buyanjargal


1 Answers

Telegram is preventing your account from inviting members to a group in a bot-like manner. You can either wait and retry after 41548 seconds as specified or You can send your application to sleep after several successful invitations using the time.sleep(seconds) by setting a variable to observe this, these two lines should help you with that;

import time
time.sleep(900)
like image 169
Buchi Avatar answered Oct 26 '25 17:10

Buchi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!