Nyamkhuu Buyanjargal
Nyamkhuu Buyanjargal

Reputation: 649

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))

Upvotes: 4

Views: 14108

Answers (1)

Buchi
Buchi

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

Related Questions