diff --git a/data/web/corefork.telegram.org/api/peers.html b/data/web/corefork.telegram.org/api/peers.html index 4aa43c0ee2..f829e843b5 100644 --- a/data/web/corefork.telegram.org/api/peers.html +++ b/data/web/corefork.telegram.org/api/peers.html @@ -209,10 +209,13 @@ As specified in the constructor docs, some of the fields must not be overwritten
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.
-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, do not use TTLs to expire the database entries, and so on...):
+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):
about
or description
(but not name
), for the bot whose info we changed.CHAT_NOT_MODIFIED
, for the peer whose reaction settings we tried to change. 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
. 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.