From accf8b057ec2b3f5454eed447fc4cb46382612e9 Mon Sep 17 00:00:00 2001
From: GitHub Action url
to log into the Fragment platform with your wallet and view the code. allow_firebase
flag is set.
-
safety_net_token
, along with the phone_number
and the phone_code_hash
.
+
+
allow_firebase
flag is set.
+The client must pass the received auth.sentCodeTypeFirebaseSms.nonce
to the SafetyNet Attestation API, and then pass the obtained JWS object to auth.requestFirebaseSms.safety_net_token
, along with the phone_number
and the phone_code_hash
.
+If the method returns boolTrue, the code will be sent via SMS; otherwise, the next_type
authentication method must be used, with auth.resendCode.token
.
+The client then waits for a new push notification for auth.sentCodeTypeFirebaseSms.push_timeout
seconds.
+If a push notification isn't received within push_timeout
seconds, the next_type
authentication method must be used, with auth.resendCode.
+If a push notification is received with receipt
and ios_push_secret
fields, and the value of the receipt
field matches codeSettings.receipt
, the value of ios_push_secret
is passed to auth.requestFirebaseSms.ios_push_secret
, along with the phone_number
and the phone_code_hash
.
If the method returns boolTrue, the code will be sent via SMS; otherwise, the next_type
authentication method must be used, with auth.resendCode.receipt
and push_timeout
fields of auth.sentCodeTypeFirebaseSms are populated, request_write_access
and the user granted it with write_allowed
.
Bot web apps can be themed according to the following theme parameters, passed as a JSON object to the theme_params
parameter of the messages.requestSimpleWebView and messages.requestWebView methods.
This JSON object has the the following keys, containing color theme information (hex string, RGB, no alpha) to pass to the web app:
+This JSON object has the following keys, containing color theme information (hex string, RGB, no alpha) to pass to the web app:
bg_color
- Background colorsecondary_bg_color
- Secondary background colorAPI peer folders are typically used only by archived chats, and are really handy for distinguishing groups of peers, since most peer-related constructors (updates, chat info) will contain the folder_id
assigned the the specified chat.
API peer folders are typically used only by archived chats, and are really handy for distinguishing groups of peers, since most peer-related constructors (updates, chat info) will contain the folder_id
assigned the specified chat.
In Telegram apps, API peer folders are used only to implement the chat archive, identified by folder_id
1
; all other peers are in folder_id
0
by default; no other folder_id
is allowed at the moment.
Most importantly, added support for Safetynet/Firebase SMS authentication, which is now mandatory when requesting SMS codes to log in or sign up to Telegram.
-Currently, only official apps can make use of Safetynet/Firebase SMS authentication: this means that only the official applications can be used to sign up to Telegram, or receive the login code via SMS/call. Third-party apps may log in using any of the other code delivery methods (Telegram codes, Fragment codes, email codes, future auth tokens).
Most importantly, added support for Firebase SMS authentication, which is now mandatory when requesting SMS codes to log in or sign up to Telegram.
+Currently, only official apps can make use of Firebase SMS authentication: this means that only the official applications can be used to sign up to Telegram, or receive the login code via SMS/call. Third-party apps may log in using any of the other code delivery methods (Telegram codes, Fragment codes, email codes, future auth tokens).
reply_mark
updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update;
The user receives an invoice deep link or an updateNewMessage constructor from the bot, containing a messageMediaInvoice constructor with basic info about the product.
For invoice messages, the message will also have a replyInlineMarkup keyboard attached to it. -The the first button of the keyboard will always be a keyboardButtonBuy button.
+The first button of the keyboard will always be a keyboardButtonBuy button.inputInvoiceMessage#c5b56859 peer:InputPeer msg_id:int = InputInvoice;
inputInvoiceSlug#c326caef slug:string = InputInvoice;
diff --git a/data/web/corefork.telegram.org/api/reactions.html b/data/web/corefork.telegram.org/api/reactions.html
index 25d400d947..04524464af 100644
--- a/data/web/corefork.telegram.org/api/reactions.html
+++ b/data/web/corefork.telegram.org/api/reactions.html
@@ -51,7 +51,7 @@
reactionCount#a3d1cb80 flags:# chosen_order:flags.0?int reaction:Reaction count:int = ReactionCount;
-messagePeerReaction#8c79b63c flags:# big:flags.0?true unread:flags.1?true peer_id:Peer date:int reaction:Reaction = MessagePeerReaction;
+messagePeerReaction#8c79b63c flags:# big:flags.0?true unread:flags.1?true my:flags.2?true peer_id:Peer date:int reaction:Reaction = MessagePeerReaction;
messageReactions#4f2b9479 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactions:flags.1?Vector<MessagePeerReaction> = MessageReactions;
diff --git a/data/web/corefork.telegram.org/api/threads.html b/data/web/corefork.telegram.org/api/threads.html
index 89ade13e64..e55ce455a1 100644
--- a/data/web/corefork.telegram.org/api/threads.html
+++ b/data/web/corefork.telegram.org/api/threads.html
@@ -99,7 +99,7 @@ Its ID for main and testing endpoints can be seen in the discussion group
reply_to.reply_to_msg_id
set to the ID of our message
reply_to.reply_to_top_id
set to the thread ID
diff --git a/data/web/corefork.telegram.org/bots/api-changelog.html b/data/web/corefork.telegram.org/bots/api-changelog.html
index 5f806d8526..8a5a4e2183 100644
--- a/data/web/corefork.telegram.org/bots/api-changelog.html
+++ b/data/web/corefork.telegram.org/bots/api-changelog.html
@@ -243,7 +243,7 @@ After the next update, only HTTPS links will be allowed in login_url in
November 5, 2021
Bot API 5.4
-- Added the the parameter
creates_join_request
to the methods createChatInviteLink and editChatInviteLink for managing chat invite links that create join requests (read more about this on our blog).
+- Added the parameter
creates_join_request
to the methods createChatInviteLink and editChatInviteLink for managing chat invite links that create join requests (read more about this on our blog).
- Added the fields
creates_join_request
and pending_join_request_count
to the class ChatInviteLink.
- Added the field
name
to the class ChatInviteLink and the parameters name
to the methods createChatInviteLink and editChatInviteLink for managing invite link names.
- Added updates about new requests to join the chat, represented by the class ChatJoinRequest and the field chat_join_request in the Update class. The bot must be an administrator in the chat with the can_invite_users administrator right to receive these updates.
diff --git a/data/web/corefork.telegram.org/bots/api.html b/data/web/corefork.telegram.org/bots/api.html
index 6d1731aa09..e4a19495fe 100644
--- a/data/web/corefork.telegram.org/bots/api.html
+++ b/data/web/corefork.telegram.org/bots/api.html
@@ -8519,7 +8519,7 @@ No more than 50 results per query are allowed.
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
InlineQueryResultVoice
-Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.
+Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.
diff --git a/data/web/corefork.telegram.org/constructor/codeSettings.html b/data/web/corefork.telegram.org/constructor/codeSettings.html
index 2b57a49822..1534bc3360 100644
--- a/data/web/corefork.telegram.org/constructor/codeSettings.html
+++ b/data/web/corefork.telegram.org/constructor/codeSettings.html
@@ -105,12 +105,12 @@
token
flags.8?string
-
+Used only by official iOS apps for Firebase auth: device token for apple push.
app_sandbox
flags.8?Bool
-
+Used only by official iOS apps for firebase auth: whether a sandbox-certificate will be used during transmission of the push notification.
diff --git a/data/web/corefork.telegram.org/constructor/updateReadChannelDiscussionInbox.html b/data/web/corefork.telegram.org/constructor/updateReadChannelDiscussionInbox.html
index f591f0080e..574325d090 100644
--- a/data/web/corefork.telegram.org/constructor/updateReadChannelDiscussionInbox.html
+++ b/data/web/corefork.telegram.org/constructor/updateReadChannelDiscussionInbox.html
@@ -94,7 +94,7 @@
broadcast_post
flags.0?int
-If set, contains the ID of the channel post that started the the comment thread
+If set, contains the ID of the channel post that started the comment thread
diff --git a/data/web/corefork.telegram.org/constructor/userFull.html b/data/web/corefork.telegram.org/constructor/userFull.html
index d018063ebe..bc127c8834 100644
--- a/data/web/corefork.telegram.org/constructor/userFull.html
+++ b/data/web/corefork.telegram.org/constructor/userFull.html
@@ -179,7 +179,7 @@
private_forward_name
flags.16?string
-Anonymized text to be shown instead of the the user's name on forwarded messages
+Anonymized text to be shown instead of the user's name on forwarded messages
bot_group_admin_rights
diff --git a/data/web/corefork.telegram.org/passport/encryption.html b/data/web/corefork.telegram.org/passport/encryption.html
index 5e69d2d35d..f804506236 100644
--- a/data/web/corefork.telegram.org/passport/encryption.html
+++ b/data/web/corefork.telegram.org/passport/encryption.html
@@ -191,7 +191,7 @@ iv = slice( password_hash, 32, 16 )
The passport_secret can now be used to decrypt encrypted passport data stored on telegram servers:
Data and File Encryption
Encryption
-To encrypt Telegram Passport data, the client generates a data_secret (a 32-byte number with the modulo 255 sum of bytes equal to 239). The the data is encrypted according to the following scheme:
+To encrypt Telegram Passport data, the client generates a data_secret (a 32-byte number with the modulo 255 sum of bytes equal to 239). The data is encrypted according to the following scheme:
-
Data is padded to a length that is divisible by 16 bytes. To achieve this, 32 to 255 bytes are added at the beginning, where the first byte always holds the number of added bytes and the rest are random.