简体   繁体   中英

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 )

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM