Reputation: 649
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))
Upvotes: 4
Views: 14108
Reputation: 506
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)
Upvotes: 5