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

Private link to the channel #2432

Closed rr8733380 closed 1 year ago

rr8733380 commented 1 year ago

how can I get the ID of the channel (or chat) if a private link leads to this channel and I am subscribed to this channel?

levlam commented 1 year ago

You need to use getInternalLinkType. Then process the link based on the returned type, or pass it to getExternalLinkInfo. In the latter case you may need to call getExternalLink to receive an actual URL to open.