Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Open the documentation once or twice and see there that there is a User object with data.
With the knowledge of this fact, you can already go ahead and write code, it doesn’t matter if you are accessing the API directly or using a wrapper library.
Clue:message.from_user
{
"id":5786161XX,
"is_bot":false,
"first_name":"Andrew",
"username":"D.",
"last_name":"None",
"language_code":"en",
"can_join_groups":"None",
"can_read_all_group_messages":"None",
"supports_inline_queries":"None"
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question