From ac29ed0aca6f998ad879ce8e557cf21407686309 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 25 Jul 2024 17:14:32 +0000 Subject: [PATCH] Update content of files --- .../corefork.telegram.org/api/factcheck.html | 7 +- .../web/corefork.telegram.org/api/layers.html | 2 +- .../constructor/factCheck.html | 2 +- .../method/auth.reportMissingCode.html | 19 +- .../method/messages.getFactCheck.html | 35 +- data/web/corefork.telegram.org/methods.html | 2 +- .../mtproto/samples-auth_key.html | 412 +++++++++--------- data/web/corefork.telegram.org/type/Bool.html | 2 +- 8 files changed, 234 insertions(+), 247 deletions(-) diff --git a/data/web/corefork.telegram.org/api/factcheck.html b/data/web/corefork.telegram.org/api/factcheck.html index 1d92753fe3..8d22e66488 100644 --- a/data/web/corefork.telegram.org/api/factcheck.html +++ b/data/web/corefork.telegram.org/api/factcheck.html @@ -53,7 +53,12 @@ ---functions--- messages.getFactCheck#b9cdc5ee peer:InputPeer msg_id:Vector<int> = Vector<FactCheck>; -

Fact-checks are represented by factCheck constructors, optionally contained in the factcheck field of the message constructor.

+

Fact-checks are represented by factCheck constructors, contained in the factcheck field of the message constructor.

+

Sometimes (i.e. for performance reasons), even if a message does have a factcheck, it may not be returned in the text field of the factCheck associated to the message: in this case, the factCheck.need_check flag will be set and the country/text flags won't be set, and the client should request the full text of the fact check manually using messages.getFactCheck when the message scrolls into view.

+

These manual requests should be bundled: every time a new ID is added to the queue of factchecks to manually fetch, postpone fetching by 80ms.

+

Store all full (i.e. those with a country/text) factchecks in a local database, using the hash as key.
+Avoid fetching min (i.e. those where need_check is set) factchecks if a factcheck with the same hash is already cached in the local database.

+

Example implementation: android.

Editing fact-checks

factCheck#b89bfccf flags:# need_check:flags.0?true country:flags.1?string text:flags.1?TextWithEntities hash:long = FactCheck;
 
diff --git a/data/web/corefork.telegram.org/api/layers.html b/data/web/corefork.telegram.org/api/layers.html
index 84804456cd..e451d0e893 100644
--- a/data/web/corefork.telegram.org/api/layers.html
+++ b/data/web/corefork.telegram.org/api/layers.html
@@ -169,7 +169,7 @@
 

Schema changes

New Methods
New Constructors
diff --git a/data/web/corefork.telegram.org/constructor/factCheck.html b/data/web/corefork.telegram.org/constructor/factCheck.html index 852a4dc747..8f48d2448e 100644 --- a/data/web/corefork.telegram.org/constructor/factCheck.html +++ b/data/web/corefork.telegram.org/constructor/factCheck.html @@ -74,7 +74,7 @@ need_check flags.0?true -  +If set, the country/text fields will not be set, and the fact check must be fetched manually by the client (if it isn't already cached with the key specified in hash) using bundled messages.getFactCheck requests, when the message with the factcheck scrolls into view. country diff --git a/data/web/corefork.telegram.org/method/auth.reportMissingCode.html b/data/web/corefork.telegram.org/method/auth.reportMissingCode.html index 464bb766d7..e5f8e714a6 100644 --- a/data/web/corefork.telegram.org/method/auth.reportMissingCode.html +++ b/data/web/corefork.telegram.org/method/auth.reportMissingCode.html @@ -4,20 +4,10 @@ auth.reportMissingCode - + - + @@ -114,7 +104,10 @@ phone_number…"> The phone number is invalid. - + +

Related pages

+

auth.sendCode

+

Send the verification code for login

diff --git a/data/web/corefork.telegram.org/method/messages.getFactCheck.html b/data/web/corefork.telegram.org/method/messages.getFactCheck.html index 55b708fea0..66e637816f 100644 --- a/data/web/corefork.telegram.org/method/messages.getFactCheck.html +++ b/data/web/corefork.telegram.org/method/messages.getFactCheck.html @@ -4,38 +4,26 @@ messages.getFactCheck - +Peer where the messages were sent. +msg_id…"> - +Peer where the messages were sent. +msg_id…"> @@ -70,7 +58,8 @@ Type…">

messages.getFactCheck

-

+

Fetch one or more factchecks ».

+