简体   繁体   中英

how to find out who joined the telegram channel using telethon

I know that there are "channel actions" but I could not find how to access it

You are probably thinking about the "admin log", which you can access with client.iter_admin_log . Assuming you have a logged-in account, and said account is an administrator of channel :

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

You will also want to read the documentation for the event type, AdminLogEvent , to learn what you can do with it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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