From 2641375509b977fc5638c3dc022f8055d76e1eb3 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 5 Aug 2024 11:39:23 +0000 Subject: [PATCH] Update content of files --- data/web/corefork.telegram.org/api/peers.html | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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:

- -

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

+
  • When receiving a CHANNEL_PRIVATE or CHANNEL_PUBLIC_GROUP_NA RPC error.
  • +
  • When a channel is made private/public (where previously it was public/private. public=has at least one username, private=has no usernames).
  • +