diff --git a/data/web/corefork.telegram.org/api/layers.html b/data/web/corefork.telegram.org/api/layers.html
index 225c1fc013..172dae3db3 100644
--- a/data/web/corefork.telegram.org/api/layers.html
+++ b/data/web/corefork.telegram.org/api/layers.html
@@ -202,6 +202,17 @@
auth.reportMissingCode#cb9deff6 phone_number:string phone_code_hash:string mnc:string = Bool;
messages.getEmojiStickerGroups#1dd840f5 hash:int = messages.EmojiGroups;
This layers introduces the following features:
+unknown_number
: set this flag if there is a SIM card in the current device, but it is not possible to check whether the specified phone number matches the SIM's phone number.This layer adds the following features:
More about sponsored messages on Telegram
Sponsored messages must be displayed below all other posts in the channel, after the user scrolls further down, past the last message. The promoted channel or bot specified in the from_id
or chat_invite
mutually exclusive fields must be displayed as the author of the message. The message should also contain a button at the bottom with one of the following labels:
Sponsored messages must be displayed below all other posts in the channel, after the user scrolls further down, past the last message. The message should contain a button at the bottom with one of the following labels:
start_param
is specified, the app must use the deep linking mechanism to open the bot.from_id
or by importing the chat_invite_hash
invitation link hash ».from_id
.channel_post
is specified. Tapping the button must open the particular channel post.app
flag is set, the specified Mini App should be opened when clicking on the button. url
flag is set, clicking on the button should open the external website specified in url
. button_text
field — if the button_text
field is set.The message should be marked as "Recommended" instead of "Sponsored" if the recommended
flag is set.
A profile photo bubble should be displayed for the sponsored message, like for messages sent in groups, using:
-photo
, if the photo
flag is set, otherwisechat_invite
, if the chat_invite
flag is set, otherwisefrom_id
, if the show_peer_photo
flag is set.A sender name should be displayed for the sponsored message, like for messages sent in groups, using:
-title
, if the title
flag is set, otherwisechat_invite
, if the chat_invite
flag is set.If the photo
flag is set, it should be used to display a profile photo bubble for the sponsored message, like for messages sent in groups.
If the title
flag is set, it should be used as sender name for the sponsored message, like for messages sent in groups.
If the sponsor_info
or additional_info
flags are set, an additional "Sponsor info" menu item must be present in the message context menu (the menu that pops up when clicking on a button), that when clicked, displays the contents of the flags.
If set, the sponsored message should use the message accent color » specified in color
.