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

Will the various ids in any of ChatType class change? #2558

Closed vincentneo closed 1 year ago

vincentneo commented 1 year ago

So for example, If we have a chatTypePrivate, with a user_id of 1, can we expect the id of 1 to always represent the same chat, at least within a session?

Likewise for supergroup_id with chatTypeSupergroup, etc.

levlam commented 1 year ago

Yes, they can't change. Only chatTypeSupergroup.is_channel can change in very rare circumstances.

vincentneo commented 1 year ago

Great! Thanks!