【发布时间】:2019-06-24 17:36:05
【问题描述】:
我尝试使用 Telethon 内置方法 (get_participants) 从频道获取所有用户。
def all_participants():
client = TelegramClient('name', api_id, api_hash)
client.start()
all_participants = []
participants = client.get_participants(username)
all_participants.extend(participants.users)
print(all_participants)
【问题讨论】:
-
我收到错误消息:telethon.errors.rpcerrorlist.ChatAdminRequiredError:在指定的聊天中需要聊天管理员权限
标签: python-3.x telegram telethon