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))
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With