diff --git a/data/web/corefork.telegram.org/api/peers.html b/data/web/corefork.telegram.org/api/peers.html index 41858792fe..ced493d3ef 100644 --- a/data/web/corefork.telegram.org/api/peers.html +++ b/data/web/corefork.telegram.org/api/peers.html @@ -119,7 +119,7 @@
Peer info must be manually refreshed with a method call to the above methods only in the following conditions (i.e. do not refresh user info when opening the profile page, and so on...):
When passively receiving an updateUser, updateChat, updateChannel, and some other updates, as specified here »
+When receiving an updateUser, updateChat, updateChannel, and some other updates, as specified here »
When fetching info about one of the following internal user IDs, if the info isn't already cached or if the cached info is min
: 777000 (service notifications user), 1271266957 (replies bot), 1087968824 (anonymous bot), 136817688 (channel bot), 5434988373 (antispam bot).
@@ -146,6 +146,17 @@ Info about these IDs may be fetched with the zero access hash even by users.
Info should only be manually refreshed with a call to users.getUsers, channels.getChannels if the new username order/active username cannot be applied locally (i.e. the method call successfully set as active some username that isn't associated to the peer in our local cache, and so on), otherwise the username
and usernames
fields of the peer info database should be updated locally, using the info that was passed to the toggle/reorder methods by the user.
After invoking the following methods, if the user for whom we set the profile photo is not returned in photos.photo.users
:
suggest
is not setAfter invoking photos.deletePhotos, if the local cache doesn't have any more photos left for the current user after removing the ones passed to the method.
+Do not manually refresh peer information in any other case, to avoid overloading the server by continuously requesting changes for the same unchanged information.
Note: some other, non-peer-related constructors (i.e. not user, chat or channel) may also contain access hashes, which should be stored in a different database.