C
C
cannabioid13372021-01-22 19:51:29
PHP
cannabioid1337, 2021-01-22 19:51:29

How to get Id by username telegram bot?

I saw bots that you throw off @username and they throw off their id. How to do this with php?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2021-01-24
@cannabioid1337

Through some kind of bot, or through oauth2 https://core.telegram.org/widgets/login There is an example in PHP at the end of the docs.

H
hesy, 2021-01-22
@hesy

This is not possible with the bot API.
Look towards MadelineProto

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question