V
V
victos55462019-04-04 03:56:20
Python
victos5546, 2019-04-04 03:56:20

How to find out the username of a user by his ID in a telegram bot?

There is a user ID in the bot database, how can I find out his username?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Eugene, 2019-04-04
@SwitcherN

When receiving a message:

message.from_user.id
message.from_user.first_name
message.from_user.last_name
message.from_user.username

C
Crash XD, 2019-04-04
@crashxd

Like it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question