diff --git a/data/web/corefork.telegram.org/api/bots/inline.html b/data/web/corefork.telegram.org/api/bots/inline.html index 4732d768bc..a4aba886b9 100644 --- a/data/web/corefork.telegram.org/api/bots/inline.html +++ b/data/web/corefork.telegram.org/api/bots/inline.html @@ -104,7 +104,7 @@ Just like its bot API counterpart, the messages.sendInlineBotResult#d3fbdccb flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to_msg_id:flags.0?int top_msg_id:flags.9?int random_id:long query_id:long id:string schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates;

The user client should display the messages.botResults.results obtained during querying in a list, making sure to handle eventual bot timeouts in the form of a BOT_RESPONSE_TIMEOUT RPC error, by simply not displaying anything.

-

If either the messages.botResults.switch_pm or messages.botResults.switch_webview flags are populated, a button should be displayed on top of the result list, that when clicked, instead of sending an inline result to the chat, switches the user to a private chat with the bot (switch_pm) or to a bot web app (switch_webview),.

+

If either the messages.botResults.switch_pm or messages.botResults.switch_webview flags are populated, a button should be displayed on top of the result list, that when clicked, instead of sending an inline result to the chat, switches the user to a private chat with the bot (switch_pm) or to a bot web app (switch_webview).

If the user instead chooses a specific BotInlineResult from the normal results list, the messages.sendInlineBotResult method should be invoked, passing:

Wallpapers can also be installed in a specific chat, by using messages.setChatWallPaper: this will emit a messageActionSetChatWallPaper service message, displaying the wallpaper in the UI along with an invitation for the other user to apply the same wallpaper.

-

If the other user decides to apply the same wallpaper to the chat, messages.setChatWallPaper should be invoked passing the wallpaper settings received in the messageActionSetChatWallPaper service message, along with the id of the messageActionSetChatWallPaper service message, without the wallpaper: this way, the action will emit a different messageActionSetSameChatWallPaper, which should be displayed in the UI as a simple acknowledgment service message, without the full wallpaper and without an invitation for the other user to apply it (since both participants already just did that).

+

If the other user decides to apply the same wallpaper to the chat, messages.setChatWallPaper should be invoked passing the wallpaper settings received in the messageActionSetChatWallPaper service message (or some different settings, if the user customized them before applying the wallpaper), along with the id of the messageActionSetChatWallPaper service message, without the wallpaper: this way, the action will emit a different messageActionSetSameChatWallPaper, which should be displayed in the UI as a simple acknowledgment service message, without the full wallpaper and without an invitation for the other user to apply it (since both participants already just did that).

Note that in order to pass image or pattern wallpapers to messages.setChatWallPaper, the for_chat flag must be set when uploading them with account.uploadWallPaper.

Also note that unlike account.installWallPaper or account.saveWallPaper, messages.setChatWallPaper accepts fill wallpapers as well.

diff --git a/data/web/corefork.telegram.org/constructor/messageEntityTextUrl.html b/data/web/corefork.telegram.org/constructor/messageEntityTextUrl.html index 49183ae294..c7e0739cdb 100644 --- a/data/web/corefork.telegram.org/constructor/messageEntityTextUrl.html +++ b/data/web/corefork.telegram.org/constructor/messageEntityTextUrl.html @@ -42,7 +42,7 @@

messageEntityTextUrl

-

Message entity representing a text url: for in-text urls like https://google.com use messageEntityUrl.

+

Message entity representing a text url: for in-text urls like https://google.com use messageEntityUrl.

Note that an additional confirmation popup with the full URL must be displayed to the user before opening this link, unless the domain is one of the whitelisted domains specified in the whitelisted_domains client configuration parameter ».

+

Message entity representing an in-text url: https://google.com; for text urls, use messageEntityTextUrl.

+

Client configuration

+

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.

diff --git a/data/web/corefork.telegram.org/constructor/messageEntityUrl.html b/data/web/corefork.telegram.org/constructor/messageEntityUrl.html index c87d0d9b2b..35e1c80292 100644 --- a/data/web/corefork.telegram.org/constructor/messageEntityUrl.html +++ b/data/web/corefork.telegram.org/constructor/messageEntityUrl.html @@ -84,7 +84,8 @@

Styled text with message entities

How to create styled text with message entities

messageEntityTextUrl

-

Message entity representing a text url: for in-text urls like https://google.com use messageEntityUrl.

+

Message entity representing a text url: for in-text urls like https://google.com use messageEntityUrl.

+

Note that an additional confirmation popup with the full URL must be displayed to the user before opening this link, unless the domain is one of the whitelisted domains specified in the whitelisted_domains client configuration parameter ».

diff --git a/data/web/corefork.telegram.org/type/MessageEntity.html b/data/web/corefork.telegram.org/type/MessageEntity.html index 7c112169d6..d56286e711 100644 --- a/data/web/corefork.telegram.org/type/MessageEntity.html +++ b/data/web/corefork.telegram.org/type/MessageEntity.html @@ -127,7 +127,7 @@ messageEntityTextUrl -Message entity representing a text url: for in-text urls like https://google.com use messageEntityUrl. +Message entity representing a text url: for in-text urls like https://google.com use messageEntityUrl.

Note that an additional confirmation popup with the full URL must be displayed to the user before opening this link, unless the domain is one of the whitelisted domains specified in the whitelisted_domains client configuration parameter ». messageEntityMentionName