O
O
Onervi2021-06-25 02:23:41
Telegram
Onervi, 2021-06-25 02:23:41

Is it possible to get id with username in pytelegrambotapi?

When I write the user's nickname to the bot so that I get his ID from the user's nickname (It will look something like this)
60d513f59c510273548983.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-06-25
@Onervi

Through the bot api - only if this data was saved somewhere in the database, and then got it.
You can only fully resolve it through the client API

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question