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):

Do not refresh full peer information in any other case, to avoid overloading the server by continuously requesting changes for the same unchanged information.