Air Loid
Air Loid

Reputation: 21

How get telegram user info by UserID?

I have a user_id like 2024211111. How i can get user info by this user_id? Tdlib api have a method called getUser, but it doesn't work with this user_id (this user_id not in my ChatList)

Upvotes: 2

Views: 1704

Answers (1)

alambertt
alambertt

Reputation: 176

Simple answer: This function doesn't exist. You just can know User Info through a chat previously initiated. So, you have to start a chat with this user first to call the API method mentioned. If you need to query the info later, you should store it, there is no another way that I know

Upvotes: 1

Related Questions