A
A
Anastasia2021-06-30 23:52:00
Telegram
Anastasia, 2021-06-30 23:52:00

Is there a list of users who have interacted with my bot?

Hello. Is it possible to get a list of id's of all users who interacted with my bot (wrote /start to it)? I mean the default telegram tools.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Confy, 2021-07-01
@nastya97core

Is there a list of users who have interacted with my bot?

It seems that there is no such thing, but if you really really need it, then there is one untested method that can help collect such a list in a month
of brute force: Telegram has a feature: the bot can create direct links to users (mentions) anywhere by their ID, but only if these users wrote to the bot before
60dce976e0677916879390.png
. So, in theory, we can write a script that will send to some group, but better in private messages (it's faster), a bunch of messages mentioning all users,
starting with 100,000,000 and ending, for example , 4,000,000,000.
Why exactly these numbers? I took a look at the ID of my Telegram account, which was registered ~3 years ago, and its ID = 362 *** ***. Then I looked at an account that was registered about a year ago, and its id = 1,700 *** ***. Judging by how quickly new accounts are registered in telegrams , I think there are about four billion accounts now, but this can be easily checked for sure if you find out the ID of some newer.
So what do we have? Telegram limits can be seen here , which means that here are all the known variables:
4,000,000,000 - ID needs to check
30 messages per second - the bot can send to private messages (20 - to a group)
67 - the maximum number of mentions in one message (I just checked)
30 * 67 * 60 = 120,600 - the number of verified users per minute
4,000,000,000 / 120,600 = 33168 - minutes to check all users
60 * 24 = 1440 - minutes in days
33168 / 1440 = 23 - the minimum number of days of non-stop operation of the bot in order to make a full check. Considering that the bot will still respond to users in parallel, the check will take a little longer
ps
pps Later, I realized that you can simultaneously send test messages to both a personal and a group, and then the speed will be 50 messages per second, and the test, in theory, will take 14 days

A
Alex, 2021-06-30
@SkyCaster

No, just write on your own.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question