我需要邀请我的一位群组成员进入 channel 。但是我的 python 脚本有点问题。拜托,你能帮帮我吗?
这是异常(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 阻止您的帐户以类似机器人的方式邀请成员加入群组。您可以等待并在指定的 41548 秒 后重试,或者您可以在多次成功邀请后使用 time.sleep(seconds) 通过将变量设置为观察这一点,这两行应该可以帮助你;
import time
time.sleep(900)
关于python-3.x - telethon.errors.rpcerrorlist.FloodWaitError : A wait of 41548 seconds is required (caused by InviteToChannelRequest),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62644256/