gpt4 book ai didi

telethon - Telegram API get_entity 请求的限制

转载 作者:行者123 更新时间:2023-12-05 06:57:07 40 4
gpt4 key购买 nike

我的应用程序监听请求,其中包含电报消息 URL,并循环处理消息:获取组的实体从目标消息中搜索 +/- 2 条消息为每个收到的消息作者获取实体(实际上为每个唯一的 from_id 找到实体)

我使用 client.get_messages() 和 client.get_entity() 方法并在每个循环之间休眠 10-15 秒。

在 2-3 小时没有任何警报(floodwait 到 10 秒或 5 分钟)后,我收到 floodwait 错误和异常超时(~22 小时)。我没有尝试发送垃圾邮件,事实上我根本没有发送任何消息。

在哪里可以找到使用 get_entity 方法的限制?或者可能使用这种方法是矫枉过正,用户信息可能会通过其他方法找到

最佳答案

我建议你看看 Telethon documentation :其中有一些技巧可以让您避免将 get_entityget_input_entity 结合使用的限制。

关于telethon - Telegram API get_entity 请求的限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64970462/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com