From 4b26b20925c13f7eaf06a38c65f80e10b48417ea Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 5 Aug 2024 10:52:21 +0000 Subject: [PATCH] Update content of files --- data/web/corefork.telegram.org/api/peers.html | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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.