How to get Telegram channel users list with Telegram Bot API

后端 未结 7 1814
旧时难觅i
旧时难觅i 2020-12-28 17:53

Anybody give a starter on how may I get information about users from my telegram bot. Imagine my bot in an admin user in my channel and I want to get my channel user list or

7条回答
  •  不思量自难忘°
    2020-12-28 18:56

    Telegram Bot doesn't keep anything about your users. You should save by yourself all users which communicate with your bot. For example, store their IDs in database.

    In case of Channel - you can get this information from Channel's members list.

    If you need to be notified - your bot should store users somewhere and check if user is a new one.

提交回复
热议问题