繁体   English   中英

如何使用 Telethon 找出谁加入了电报频道

[英]how to find out who joined the telegram channel using telethon

我知道有“频道操作”,但我找不到如何访问它

您可能正在考虑可以使用client.iter_admin_log访问的“管理日志”。 假设您有一个登录帐户,并且该帐户是channel的管理员:

async for event in client.iter_admin_log(channel):
    if event.changed_title:
        print('The title changed from', event.old, 'to', event.new)

您还需要阅读event类型AdminLogEvent的文档,以了解您可以使用它做什么。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM