tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

How to get an userID with @username? #2629

Closed thom-gg closed 11 months ago

thom-gg commented 1 year ago

I tried using the request searchPublicChats to then filter it to private chats, but my result is always empty. image

Is there other methods I could use ?

levlam commented 1 year ago

To find specific chat you should use searchPublicChat.