T
T
Timofey2018-05-22 21:42:54
Node.js
Timofey, 2018-05-22 21:42:54

How to get all users of Telergam bot?

I am using https://github.com/yagop/node-telegram-bot-api for my bot.
Tell me how can I get a list of all bot chats (all who use the bot)?
I did not find a suitable method in the bots API ...
And not a big passing question, can I find out when the user deletes the chat (stops using the bot) ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
U
Uno, 2018-05-23
@T1MOX4

To get all users, you need to remember them somewhere, and take them from there.
To learn, whether deletes - it is impossible. Is it possible to make a native "exit" button

R
Restwl, 2018-05-31
@Restwl

It is best to capture the user when they enter the /start command.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question