diff --git a/data/web/corefork.telegram.org/api/peers.html b/data/web/corefork.telegram.org/api/peers.html index f829e843b5..a2c6376056 100644 --- a/data/web/corefork.telegram.org/api/peers.html +++ b/data/web/corefork.telegram.org/api/peers.html @@ -208,13 +208,12 @@ As specified in the constructor docs, some of the fields must not be overwritten
Example implementation: tdlib.
The full info database contains info from the userFull, chatFull and channelFull constructors.
To populate the full info database for a peer, invoke users.getFullUser, messages.getFullChat, channels.getFullChannel, all requiring the previously cached access_hash ».
-Populate the full info database only when the client needs some data from a full constructor, and there is no entry already in the database.
Invalidate only userFull and channelFull entries 60 seconds after they are stored.
-Full peer info stored to the database must be refreshed only in the following conditions (i.e. do not refresh user info when opening the profile page, or every time the entry is accessed, or when the TTL expires):
+Refresh the full info database only when the client needs some data from a full constructor, and there is no entry already in the database, or the entries were invalidated by the TTL (i.e. do not refresh user info when opening the profile page, or every time the entry is accessed, or when the TTL expires and the data isn't immediately needed for some operation).
+Immediately invalidate the related full peer database entry if:
about
or description
(but not name
), for the bot whose info we changed.photo
is not equal to chatFull.chat_photo
linked_chat_id
of channnel/supergroup A is updated to point to channel/supergroup B, but the channelFull.linked_chat_id
of channel/supergroup B does not point to channel/supergroup A, refresh the channelFull of channel/supergroup B.bot_info
. participants_count
is less than channelFull.admins_count
after a local update of the admin list by other means.USER_NOT_PARTICIPANT
when calling channels.leaveChannelDo not refresh full peer information in any other case, to avoid overloading the server by continuously requesting changes for the same unchanged information.
+CHANNEL_PRIVATE
or CHANNEL_PUBLIC_GROUP_NA
RPC error.