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

标签 python-3.x telethon

我需要邀请我的一位群组成员进入 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/

相关文章:

python 3.0 "with"语法错误?

python - Telethon:如何获取私有(private) channel 的邀请链接?

python - 如何使用 Telethon 将照片发送给 Telegram 用户

python-3.x - 字符串 session 什么时候过期?

python - Pyglet OpenGL 设置雾颜色

python - 如何使自定义 Number 类可转换为 int 和 float?

python - 从bash或python检测当前鼠标光标类型的方法

telethon - telegram 中的聊天和 channel 有什么区别?

Python - Telethon 搜索(Python 的 Telegram API)

python - 单元测试和多个模块的 ImportError