获取与用户共享的聊天(组)

2024-04-25 07:57:35 发布

您现在位置:Python中文网/ 问答频道 /正文

有没有办法获得与使用Telethon向机器人发送消息的用户相同的公共组列表?
我尝试了使用iter_dialogsAPI的GetDialogsRequest,但机器人似乎无法使用此API:

The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot (caused by GetDialogsRequest)

还有别的办法吗


Tags: the用户api消息列表foraccessbot