From cba53ee24245213da71aebc2c95f10f1e488522e Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 8 Aug 2022 17:32:15 +0000 Subject: [PATCH] Update content of files --- .../corefork.telegram.org/api/entities.html | 8 ++-- .../corefork.telegram.org/api/invites.html | 6 +-- .../corefork.telegram.org/api/reactions.html | 8 ++-- .../constructor/attachMenuBots.html | 47 +++++-------------- .../constructor/availableReaction.html | 2 +- .../constructor/botInfo.html | 6 +-- .../constructor/botMenuButton.html | 37 ++++----------- 7 files changed, 36 insertions(+), 78 deletions(-) diff --git a/data/web/corefork.telegram.org/api/entities.html b/data/web/corefork.telegram.org/api/entities.html index 50c3a4a4a4..c3061216b8 100644 --- a/data/web/corefork.telegram.org/api/entities.html +++ b/data/web/corefork.telegram.org/api/entities.html @@ -45,10 +45,10 @@

Telegram supports styled text using message entities.

A client that wants to send styled messages would simply have to integrate a Markdown/HTML parser, and generate an array of message entities by iterating through the parsed tags.

Nested entities are supported.

-

Entity length

+

Entity length

Special care must be taken to consider the length of strings when generating message entities as the number of UTF-16 code units, even if the message itself must be encoded using UTF-8.

Example implementations: tdlib, MadelineProto.

-

Unicode codepoints and encoding

+

Unicode codepoints and encoding

A Unicode code point is a number ranging from 0x0 to 0x10FFFF, usually represented using U+0000 to U+10FFFF syntax.
Unicode defines a codespace of 1,112,064 assignable code points within the U+0000 to U+10FFFF range.
Each of the assignable codepoints, once assigned by the Unicode consortium, maps to a specific character, emoji or control symbol.

@@ -64,7 +64,7 @@ UTF-8 is used by the MTProto and Bot API when transmitting and receiving fields

UTF-16

UTF-16 » is a Unicode encoding that allows storing a 21-bit Unicode code point into one or two 16-bit code units.

UTF-16 is used when computing the length and offsets of entities in the MTProto and bot APIs, by counting the number of UTF-16 code units (not code points).

-

Computing entity length

+

Computing entity length