From fe49f8d2191421121af1f1fe35484ef26233ab63 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 23 Mar 2023 18:37:30 +0000 Subject: [PATCH] Update content of files --- .../corefork.telegram.org/api/entities.html | 2 +- .../corefork.telegram.org/api/translate.html | 118 ------------------ 2 files changed, 1 insertion(+), 119 deletions(-) delete mode 100644 data/web/corefork.telegram.org/api/translate.html diff --git a/data/web/corefork.telegram.org/api/entities.html b/data/web/corefork.telegram.org/api/entities.html index c974cada6d..3979c59128 100644 --- a/data/web/corefork.telegram.org/api/entities.html +++ b/data/web/corefork.telegram.org/api/entities.html @@ -81,7 +81,7 @@ UTF-8 is used by the MTProto and Bot API when transmitting and receiving fields
length := 0
 for byte in text {
     if (byte & 0xc0) != 0x80 {
-        length += 1 + (byte >= 0xf0)
+        length += (byte >= 0xf0 ? 2 : 1)
     }
 }

Note: the length of an entity must not include the length of trailing newlines or whitespaces, rtrim entities before computing their length: however, the next offset must include the length of newlines or whitespaces that precede it.

diff --git a/data/web/corefork.telegram.org/api/translate.html b/data/web/corefork.telegram.org/api/translate.html deleted file mode 100644 index 3c174d560a..0000000000 --- a/data/web/corefork.telegram.org/api/translate.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - Page not found - - - - - - - - - - - - - - - - -
- -
-
-
- -

Page not found

- -
The page has not been saved
- -
- -
-
- -
- - - - - -