mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-05 18:38:19 +01:00
Update content of files
This commit is contained in:
parent
7b057f5437
commit
7791f4ec64
52 changed files with 1170 additions and 626 deletions
|
@ -48,7 +48,7 @@
|
|||
<p>Schema:</p>
|
||||
<pre><code><a href='/constructor/peerSettings'>peerSettings</a>#a518110d flags:<a href='/type/%23'>#</a> report_spam:flags.0?<a href='/constructor/true'>true</a> add_contact:flags.1?<a href='/constructor/true'>true</a> block_contact:flags.2?<a href='/constructor/true'>true</a> share_contact:flags.3?<a href='/constructor/true'>true</a> need_contacts_exception:flags.4?<a href='/constructor/true'>true</a> report_geo:flags.5?<a href='/constructor/true'>true</a> autoarchived:flags.7?<a href='/constructor/true'>true</a> invite_members:flags.8?<a href='/constructor/true'>true</a> request_chat_broadcast:flags.10?<a href='/constructor/true'>true</a> geo_distance:flags.6?<a href='/type/int'>int</a> request_chat_title:flags.9?<a href='/type/string'>string</a> request_chat_date:flags.9?<a href='/type/int'>int</a> = <a href='/type/PeerSettings'>PeerSettings</a>;
|
||||
|
||||
<a href='/constructor/userFull'>userFull</a>#b9b12c6c flags:<a href='/type/%23'>#</a> blocked:flags.0?<a href='/constructor/true'>true</a> phone_calls_available:flags.4?<a href='/constructor/true'>true</a> phone_calls_private:flags.5?<a href='/constructor/true'>true</a> can_pin_message:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.12?<a href='/constructor/true'>true</a> video_calls_available:flags.13?<a href='/constructor/true'>true</a> voice_messages_forbidden:flags.20?<a href='/constructor/true'>true</a> translations_disabled:flags.23?<a href='/constructor/true'>true</a> stories_pinned_available:flags.26?<a href='/constructor/true'>true</a> blocked_my_stories_from:flags.27?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:flags.1?<a href='/type/string'>string</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> personal_photo:flags.21?<a href='/type/Photo'>Photo</a> profile_photo:flags.2?<a href='/type/Photo'>Photo</a> fallback_photo:flags.22?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> bot_info:flags.3?<a href='/type/BotInfo'>BotInfo</a> pinned_msg_id:flags.6?<a href='/type/int'>int</a> common_chats_count:<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> ttl_period:flags.14?<a href='/type/int'>int</a> theme_emoticon:flags.15?<a href='/type/string'>string</a> private_forward_name:flags.16?<a href='/type/string'>string</a> bot_group_admin_rights:flags.17?<a href='/type/ChatAdminRights'>ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href='/type/ChatAdminRights'>ChatAdminRights</a> premium_gifts:flags.19?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumGiftOption'>PremiumGiftOption</a>> wallpaper:flags.24?<a href='/type/WallPaper'>WallPaper</a> stories:flags.25?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/UserFull'>UserFull</a>;
|
||||
<a href='/constructor/userFull'>userFull</a>#b9b12c6c flags:<a href='/type/%23'>#</a> blocked:flags.0?<a href='/constructor/true'>true</a> phone_calls_available:flags.4?<a href='/constructor/true'>true</a> phone_calls_private:flags.5?<a href='/constructor/true'>true</a> can_pin_message:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.12?<a href='/constructor/true'>true</a> video_calls_available:flags.13?<a href='/constructor/true'>true</a> voice_messages_forbidden:flags.20?<a href='/constructor/true'>true</a> translations_disabled:flags.23?<a href='/constructor/true'>true</a> stories_pinned_available:flags.26?<a href='/constructor/true'>true</a> blocked_my_stories_from:flags.27?<a href='/constructor/true'>true</a> wallpaper_overridden:flags.28?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:flags.1?<a href='/type/string'>string</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> personal_photo:flags.21?<a href='/type/Photo'>Photo</a> profile_photo:flags.2?<a href='/type/Photo'>Photo</a> fallback_photo:flags.22?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> bot_info:flags.3?<a href='/type/BotInfo'>BotInfo</a> pinned_msg_id:flags.6?<a href='/type/int'>int</a> common_chats_count:<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> ttl_period:flags.14?<a href='/type/int'>int</a> theme_emoticon:flags.15?<a href='/type/string'>string</a> private_forward_name:flags.16?<a href='/type/string'>string</a> bot_group_admin_rights:flags.17?<a href='/type/ChatAdminRights'>ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href='/type/ChatAdminRights'>ChatAdminRights</a> premium_gifts:flags.19?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumGiftOption'>PremiumGiftOption</a>> wallpaper:flags.24?<a href='/type/WallPaper'>WallPaper</a> stories:flags.25?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/UserFull'>UserFull</a>;
|
||||
|
||||
<a href='/constructor/updatePeerSettings'>updatePeerSettings</a>#6a7e7366 peer:<a href='/type/Peer'>Peer</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> = <a href='/type/Update'>Update</a>;
|
||||
|
||||
|
|
|
@ -52,9 +52,9 @@
|
|||
<a href='/constructor/botInfo'>botInfo</a>#8f300b57 flags:<a href='/type/%23'>#</a> user_id:flags.0?<a href='/type/long'>long</a> description:flags.1?<a href='/type/string'>string</a> description_photo:flags.4?<a href='/type/Photo'>Photo</a> description_document:flags.5?<a href='/type/Document'>Document</a> commands:flags.2?<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotCommand'>BotCommand</a>> menu_button:flags.3?<a href='/type/BotMenuButton'>BotMenuButton</a> = <a href='/type/BotInfo'>BotInfo</a>;
|
||||
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> view_forum_as_messages:flags2.6?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
<a href='/constructor/userFull'>userFull</a>#b9b12c6c flags:<a href='/type/%23'>#</a> blocked:flags.0?<a href='/constructor/true'>true</a> phone_calls_available:flags.4?<a href='/constructor/true'>true</a> phone_calls_private:flags.5?<a href='/constructor/true'>true</a> can_pin_message:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.12?<a href='/constructor/true'>true</a> video_calls_available:flags.13?<a href='/constructor/true'>true</a> voice_messages_forbidden:flags.20?<a href='/constructor/true'>true</a> translations_disabled:flags.23?<a href='/constructor/true'>true</a> stories_pinned_available:flags.26?<a href='/constructor/true'>true</a> blocked_my_stories_from:flags.27?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:flags.1?<a href='/type/string'>string</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> personal_photo:flags.21?<a href='/type/Photo'>Photo</a> profile_photo:flags.2?<a href='/type/Photo'>Photo</a> fallback_photo:flags.22?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> bot_info:flags.3?<a href='/type/BotInfo'>BotInfo</a> pinned_msg_id:flags.6?<a href='/type/int'>int</a> common_chats_count:<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> ttl_period:flags.14?<a href='/type/int'>int</a> theme_emoticon:flags.15?<a href='/type/string'>string</a> private_forward_name:flags.16?<a href='/type/string'>string</a> bot_group_admin_rights:flags.17?<a href='/type/ChatAdminRights'>ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href='/type/ChatAdminRights'>ChatAdminRights</a> premium_gifts:flags.19?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumGiftOption'>PremiumGiftOption</a>> wallpaper:flags.24?<a href='/type/WallPaper'>WallPaper</a> stories:flags.25?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/UserFull'>UserFull</a>;
|
||||
<a href='/constructor/userFull'>userFull</a>#b9b12c6c flags:<a href='/type/%23'>#</a> blocked:flags.0?<a href='/constructor/true'>true</a> phone_calls_available:flags.4?<a href='/constructor/true'>true</a> phone_calls_private:flags.5?<a href='/constructor/true'>true</a> can_pin_message:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.12?<a href='/constructor/true'>true</a> video_calls_available:flags.13?<a href='/constructor/true'>true</a> voice_messages_forbidden:flags.20?<a href='/constructor/true'>true</a> translations_disabled:flags.23?<a href='/constructor/true'>true</a> stories_pinned_available:flags.26?<a href='/constructor/true'>true</a> blocked_my_stories_from:flags.27?<a href='/constructor/true'>true</a> wallpaper_overridden:flags.28?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:flags.1?<a href='/type/string'>string</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> personal_photo:flags.21?<a href='/type/Photo'>Photo</a> profile_photo:flags.2?<a href='/type/Photo'>Photo</a> fallback_photo:flags.22?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> bot_info:flags.3?<a href='/type/BotInfo'>BotInfo</a> pinned_msg_id:flags.6?<a href='/type/int'>int</a> common_chats_count:<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> ttl_period:flags.14?<a href='/type/int'>int</a> theme_emoticon:flags.15?<a href='/type/string'>string</a> private_forward_name:flags.16?<a href='/type/string'>string</a> bot_group_admin_rights:flags.17?<a href='/type/ChatAdminRights'>ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href='/type/ChatAdminRights'>ChatAdminRights</a> premium_gifts:flags.19?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumGiftOption'>PremiumGiftOption</a>> wallpaper:flags.24?<a href='/type/WallPaper'>WallPaper</a> stories:flags.25?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/UserFull'>UserFull</a>;
|
||||
|
||||
<a href='/constructor/user'>user</a>#abb5f120 flags:<a href='/type/%23'>#</a> self:flags.10?<a href='/constructor/true'>true</a> contact:flags.11?<a href='/constructor/true'>true</a> mutual_contact:flags.12?<a href='/constructor/true'>true</a> deleted:flags.13?<a href='/constructor/true'>true</a> bot:flags.14?<a href='/constructor/true'>true</a> bot_chat_history:flags.15?<a href='/constructor/true'>true</a> bot_nochats:flags.16?<a href='/constructor/true'>true</a> verified:flags.17?<a href='/constructor/true'>true</a> restricted:flags.18?<a href='/constructor/true'>true</a> min:flags.20?<a href='/constructor/true'>true</a> bot_inline_geo:flags.21?<a href='/constructor/true'>true</a> support:flags.23?<a href='/constructor/true'>true</a> scam:flags.24?<a href='/constructor/true'>true</a> apply_min_photo:flags.25?<a href='/constructor/true'>true</a> fake:flags.26?<a href='/constructor/true'>true</a> bot_attach_menu:flags.27?<a href='/constructor/true'>true</a> premium:flags.28?<a href='/constructor/true'>true</a> attach_menu_enabled:flags.29?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> bot_can_edit:flags2.1?<a href='/constructor/true'>true</a> close_friend:flags2.2?<a href='/constructor/true'>true</a> stories_hidden:flags2.3?<a href='/constructor/true'>true</a> stories_unavailable:flags2.4?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.0?<a href='/type/long'>long</a> first_name:flags.1?<a href='/type/string'>string</a> last_name:flags.2?<a href='/type/string'>string</a> username:flags.3?<a href='/type/string'>string</a> phone:flags.4?<a href='/type/string'>string</a> photo:flags.5?<a href='/type/UserProfilePhoto'>UserProfilePhoto</a> status:flags.6?<a href='/type/UserStatus'>UserStatus</a> bot_info_version:flags.14?<a href='/type/int'>int</a> restriction_reason:flags.18?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href='/type/string'>string</a> lang_code:flags.22?<a href='/type/string'>string</a> emoji_status:flags.30?<a href='/type/EmojiStatus'>EmojiStatus</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.5?<a href='/type/int'>int</a> = <a href='/type/User'>User</a>;</code></pre>
|
||||
<a href='/constructor/user'>user</a>#215c4438 flags:<a href='/type/%23'>#</a> self:flags.10?<a href='/constructor/true'>true</a> contact:flags.11?<a href='/constructor/true'>true</a> mutual_contact:flags.12?<a href='/constructor/true'>true</a> deleted:flags.13?<a href='/constructor/true'>true</a> bot:flags.14?<a href='/constructor/true'>true</a> bot_chat_history:flags.15?<a href='/constructor/true'>true</a> bot_nochats:flags.16?<a href='/constructor/true'>true</a> verified:flags.17?<a href='/constructor/true'>true</a> restricted:flags.18?<a href='/constructor/true'>true</a> min:flags.20?<a href='/constructor/true'>true</a> bot_inline_geo:flags.21?<a href='/constructor/true'>true</a> support:flags.23?<a href='/constructor/true'>true</a> scam:flags.24?<a href='/constructor/true'>true</a> apply_min_photo:flags.25?<a href='/constructor/true'>true</a> fake:flags.26?<a href='/constructor/true'>true</a> bot_attach_menu:flags.27?<a href='/constructor/true'>true</a> premium:flags.28?<a href='/constructor/true'>true</a> attach_menu_enabled:flags.29?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> bot_can_edit:flags2.1?<a href='/constructor/true'>true</a> close_friend:flags2.2?<a href='/constructor/true'>true</a> stories_hidden:flags2.3?<a href='/constructor/true'>true</a> stories_unavailable:flags2.4?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.0?<a href='/type/long'>long</a> first_name:flags.1?<a href='/type/string'>string</a> last_name:flags.2?<a href='/type/string'>string</a> username:flags.3?<a href='/type/string'>string</a> phone:flags.4?<a href='/type/string'>string</a> photo:flags.5?<a href='/type/UserProfilePhoto'>UserProfilePhoto</a> status:flags.6?<a href='/type/UserStatus'>UserStatus</a> bot_info_version:flags.14?<a href='/type/int'>int</a> restriction_reason:flags.18?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href='/type/string'>string</a> lang_code:flags.22?<a href='/type/string'>string</a> emoji_status:flags.30?<a href='/type/EmojiStatus'>EmojiStatus</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.5?<a href='/type/int'>int</a> color:flags2.8?<a href='/type/PeerColor'>PeerColor</a> profile_color:flags2.9?<a href='/type/PeerColor'>PeerColor</a> = <a href='/type/User'>User</a>;</code></pre>
|
||||
<p>The <a href="/constructor/botInfo">botInfo</a> constructors contained in the <a href="/constructor/userFull">userFull</a>, <a href="/constructor/chatFull">chatFull</a>, <a href="/constructor/channelFull">channelFull</a> contain a list of commands, and for groups, the ID and a description of each bot. </p>
|
||||
<p>In graphical clients, when users begin a message with a <code>/</code>, a list of commands supported by all bots present in the current chat should be shown; the same should be done for one-to-one chats with the bot itself. </p>
|
||||
<p>If the command list of a bot changes, the <code>bot_info_version</code> contained in the <a href="/constructor/user">user</a> constructor received in updates will change; this indicates that the client should refetch full bot information using <a href="/method/users.getFullUser">users.getFullUser</a>.</p>
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
|
||||
---functions---
|
||||
|
||||
<a href='/method/messages.sendMedia'>messages.sendMedia</a>#72ccc23d flags:<a href='/type/%23'>#</a> silent:flags.5?<a href='/constructor/true'>true</a> background:flags.6?<a href='/constructor/true'>true</a> clear_draft:flags.7?<a href='/constructor/true'>true</a> noforwards:flags.14?<a href='/constructor/true'>true</a> update_stickersets_order:flags.15?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> reply_to:flags.0?<a href='/type/InputReplyTo'>InputReplyTo</a> media:<a href='/type/InputMedia'>InputMedia</a> message:<a href='/type/string'>string</a> random_id:<a href='/type/long'>long</a> reply_markup:flags.2?<a href='/type/ReplyMarkup'>ReplyMarkup</a> entities:flags.3?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> schedule_date:flags.10?<a href='/type/int'>int</a> send_as:flags.13?<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/Updates'>Updates</a>;</code></pre>
|
||||
<a href='/method/messages.sendMedia'>messages.sendMedia</a>#72ccc23d flags:<a href='/type/%23'>#</a> silent:flags.5?<a href='/constructor/true'>true</a> background:flags.6?<a href='/constructor/true'>true</a> clear_draft:flags.7?<a href='/constructor/true'>true</a> noforwards:flags.14?<a href='/constructor/true'>true</a> update_stickersets_order:flags.15?<a href='/constructor/true'>true</a> invert_media:flags.16?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> reply_to:flags.0?<a href='/type/InputReplyTo'>InputReplyTo</a> media:<a href='/type/InputMedia'>InputMedia</a> message:<a href='/type/string'>string</a> random_id:<a href='/type/long'>long</a> reply_markup:flags.2?<a href='/type/ReplyMarkup'>ReplyMarkup</a> entities:flags.3?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> schedule_date:flags.10?<a href='/type/int'>int</a> send_as:flags.13?<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/Updates'>Updates</a>;</code></pre>
|
||||
<p>Bots can directly send a game using <a href="/method/messages.sendMedia">messages.sendMedia</a>, providing:</p>
|
||||
<ul>
|
||||
<li>The game's short name obtained from <a href="https://t.me/botfather">@BotFather</a> or from a <a href="/api/links#game-links">game link »</a> to <code>inputGameShortName.short_name</code></li>
|
||||
|
|
|
@ -79,11 +79,11 @@ Note that according to the user's <a href="/api/privacy">privacy settings</a>, n
|
|||
|
||||
<a href='/constructor/inputUser'>inputUser</a>#f21158c6 user_id:<a href='/type/long'>long</a> access_hash:<a href='/type/long'>long</a> = <a href='/type/InputUser'>InputUser</a>;
|
||||
|
||||
<a href='/constructor/user'>user</a>#abb5f120 flags:<a href='/type/%23'>#</a> self:flags.10?<a href='/constructor/true'>true</a> contact:flags.11?<a href='/constructor/true'>true</a> mutual_contact:flags.12?<a href='/constructor/true'>true</a> deleted:flags.13?<a href='/constructor/true'>true</a> bot:flags.14?<a href='/constructor/true'>true</a> bot_chat_history:flags.15?<a href='/constructor/true'>true</a> bot_nochats:flags.16?<a href='/constructor/true'>true</a> verified:flags.17?<a href='/constructor/true'>true</a> restricted:flags.18?<a href='/constructor/true'>true</a> min:flags.20?<a href='/constructor/true'>true</a> bot_inline_geo:flags.21?<a href='/constructor/true'>true</a> support:flags.23?<a href='/constructor/true'>true</a> scam:flags.24?<a href='/constructor/true'>true</a> apply_min_photo:flags.25?<a href='/constructor/true'>true</a> fake:flags.26?<a href='/constructor/true'>true</a> bot_attach_menu:flags.27?<a href='/constructor/true'>true</a> premium:flags.28?<a href='/constructor/true'>true</a> attach_menu_enabled:flags.29?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> bot_can_edit:flags2.1?<a href='/constructor/true'>true</a> close_friend:flags2.2?<a href='/constructor/true'>true</a> stories_hidden:flags2.3?<a href='/constructor/true'>true</a> stories_unavailable:flags2.4?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.0?<a href='/type/long'>long</a> first_name:flags.1?<a href='/type/string'>string</a> last_name:flags.2?<a href='/type/string'>string</a> username:flags.3?<a href='/type/string'>string</a> phone:flags.4?<a href='/type/string'>string</a> photo:flags.5?<a href='/type/UserProfilePhoto'>UserProfilePhoto</a> status:flags.6?<a href='/type/UserStatus'>UserStatus</a> bot_info_version:flags.14?<a href='/type/int'>int</a> restriction_reason:flags.18?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href='/type/string'>string</a> lang_code:flags.22?<a href='/type/string'>string</a> emoji_status:flags.30?<a href='/type/EmojiStatus'>EmojiStatus</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.5?<a href='/type/int'>int</a> = <a href='/type/User'>User</a>;
|
||||
<a href='/constructor/user'>user</a>#215c4438 flags:<a href='/type/%23'>#</a> self:flags.10?<a href='/constructor/true'>true</a> contact:flags.11?<a href='/constructor/true'>true</a> mutual_contact:flags.12?<a href='/constructor/true'>true</a> deleted:flags.13?<a href='/constructor/true'>true</a> bot:flags.14?<a href='/constructor/true'>true</a> bot_chat_history:flags.15?<a href='/constructor/true'>true</a> bot_nochats:flags.16?<a href='/constructor/true'>true</a> verified:flags.17?<a href='/constructor/true'>true</a> restricted:flags.18?<a href='/constructor/true'>true</a> min:flags.20?<a href='/constructor/true'>true</a> bot_inline_geo:flags.21?<a href='/constructor/true'>true</a> support:flags.23?<a href='/constructor/true'>true</a> scam:flags.24?<a href='/constructor/true'>true</a> apply_min_photo:flags.25?<a href='/constructor/true'>true</a> fake:flags.26?<a href='/constructor/true'>true</a> bot_attach_menu:flags.27?<a href='/constructor/true'>true</a> premium:flags.28?<a href='/constructor/true'>true</a> attach_menu_enabled:flags.29?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> bot_can_edit:flags2.1?<a href='/constructor/true'>true</a> close_friend:flags2.2?<a href='/constructor/true'>true</a> stories_hidden:flags2.3?<a href='/constructor/true'>true</a> stories_unavailable:flags2.4?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.0?<a href='/type/long'>long</a> first_name:flags.1?<a href='/type/string'>string</a> last_name:flags.2?<a href='/type/string'>string</a> username:flags.3?<a href='/type/string'>string</a> phone:flags.4?<a href='/type/string'>string</a> photo:flags.5?<a href='/type/UserProfilePhoto'>UserProfilePhoto</a> status:flags.6?<a href='/type/UserStatus'>UserStatus</a> bot_info_version:flags.14?<a href='/type/int'>int</a> restriction_reason:flags.18?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href='/type/string'>string</a> lang_code:flags.22?<a href='/type/string'>string</a> emoji_status:flags.30?<a href='/type/EmojiStatus'>EmojiStatus</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.5?<a href='/type/int'>int</a> color:flags2.8?<a href='/type/PeerColor'>PeerColor</a> profile_color:flags2.9?<a href='/type/PeerColor'>PeerColor</a> = <a href='/type/User'>User</a>;
|
||||
|
||||
<a href='/constructor/peerSettings'>peerSettings</a>#a518110d flags:<a href='/type/%23'>#</a> report_spam:flags.0?<a href='/constructor/true'>true</a> add_contact:flags.1?<a href='/constructor/true'>true</a> block_contact:flags.2?<a href='/constructor/true'>true</a> share_contact:flags.3?<a href='/constructor/true'>true</a> need_contacts_exception:flags.4?<a href='/constructor/true'>true</a> report_geo:flags.5?<a href='/constructor/true'>true</a> autoarchived:flags.7?<a href='/constructor/true'>true</a> invite_members:flags.8?<a href='/constructor/true'>true</a> request_chat_broadcast:flags.10?<a href='/constructor/true'>true</a> geo_distance:flags.6?<a href='/type/int'>int</a> request_chat_title:flags.9?<a href='/type/string'>string</a> request_chat_date:flags.9?<a href='/type/int'>int</a> = <a href='/type/PeerSettings'>PeerSettings</a>;
|
||||
|
||||
<a href='/constructor/userFull'>userFull</a>#b9b12c6c flags:<a href='/type/%23'>#</a> blocked:flags.0?<a href='/constructor/true'>true</a> phone_calls_available:flags.4?<a href='/constructor/true'>true</a> phone_calls_private:flags.5?<a href='/constructor/true'>true</a> can_pin_message:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.12?<a href='/constructor/true'>true</a> video_calls_available:flags.13?<a href='/constructor/true'>true</a> voice_messages_forbidden:flags.20?<a href='/constructor/true'>true</a> translations_disabled:flags.23?<a href='/constructor/true'>true</a> stories_pinned_available:flags.26?<a href='/constructor/true'>true</a> blocked_my_stories_from:flags.27?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:flags.1?<a href='/type/string'>string</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> personal_photo:flags.21?<a href='/type/Photo'>Photo</a> profile_photo:flags.2?<a href='/type/Photo'>Photo</a> fallback_photo:flags.22?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> bot_info:flags.3?<a href='/type/BotInfo'>BotInfo</a> pinned_msg_id:flags.6?<a href='/type/int'>int</a> common_chats_count:<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> ttl_period:flags.14?<a href='/type/int'>int</a> theme_emoticon:flags.15?<a href='/type/string'>string</a> private_forward_name:flags.16?<a href='/type/string'>string</a> bot_group_admin_rights:flags.17?<a href='/type/ChatAdminRights'>ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href='/type/ChatAdminRights'>ChatAdminRights</a> premium_gifts:flags.19?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumGiftOption'>PremiumGiftOption</a>> wallpaper:flags.24?<a href='/type/WallPaper'>WallPaper</a> stories:flags.25?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/UserFull'>UserFull</a>;
|
||||
<a href='/constructor/userFull'>userFull</a>#b9b12c6c flags:<a href='/type/%23'>#</a> blocked:flags.0?<a href='/constructor/true'>true</a> phone_calls_available:flags.4?<a href='/constructor/true'>true</a> phone_calls_private:flags.5?<a href='/constructor/true'>true</a> can_pin_message:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.12?<a href='/constructor/true'>true</a> video_calls_available:flags.13?<a href='/constructor/true'>true</a> voice_messages_forbidden:flags.20?<a href='/constructor/true'>true</a> translations_disabled:flags.23?<a href='/constructor/true'>true</a> stories_pinned_available:flags.26?<a href='/constructor/true'>true</a> blocked_my_stories_from:flags.27?<a href='/constructor/true'>true</a> wallpaper_overridden:flags.28?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:flags.1?<a href='/type/string'>string</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> personal_photo:flags.21?<a href='/type/Photo'>Photo</a> profile_photo:flags.2?<a href='/type/Photo'>Photo</a> fallback_photo:flags.22?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> bot_info:flags.3?<a href='/type/BotInfo'>BotInfo</a> pinned_msg_id:flags.6?<a href='/type/int'>int</a> common_chats_count:<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> ttl_period:flags.14?<a href='/type/int'>int</a> theme_emoticon:flags.15?<a href='/type/string'>string</a> private_forward_name:flags.16?<a href='/type/string'>string</a> bot_group_admin_rights:flags.17?<a href='/type/ChatAdminRights'>ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href='/type/ChatAdminRights'>ChatAdminRights</a> premium_gifts:flags.19?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumGiftOption'>PremiumGiftOption</a>> wallpaper:flags.24?<a href='/type/WallPaper'>WallPaper</a> stories:flags.25?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/UserFull'>UserFull</a>;
|
||||
|
||||
<a href='/constructor/updatePeerSettings'>updatePeerSettings</a>#6a7e7366 peer:<a href='/type/Peer'>Peer</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> = <a href='/type/Update'>Update</a>;
|
||||
|
||||
|
@ -105,7 +105,7 @@ Note that according to the user's <a href="/api/privacy">privacy settings</a>, n
|
|||
<p>Schema:</p>
|
||||
<pre><code><a href='/constructor/contact'>contact</a>#145ade0b user_id:<a href='/type/long'>long</a> mutual:<a href='/type/Bool'>Bool</a> = <a href='/type/Contact'>Contact</a>;
|
||||
|
||||
<a href='/constructor/user'>user</a>#abb5f120 flags:<a href='/type/%23'>#</a> self:flags.10?<a href='/constructor/true'>true</a> contact:flags.11?<a href='/constructor/true'>true</a> mutual_contact:flags.12?<a href='/constructor/true'>true</a> deleted:flags.13?<a href='/constructor/true'>true</a> bot:flags.14?<a href='/constructor/true'>true</a> bot_chat_history:flags.15?<a href='/constructor/true'>true</a> bot_nochats:flags.16?<a href='/constructor/true'>true</a> verified:flags.17?<a href='/constructor/true'>true</a> restricted:flags.18?<a href='/constructor/true'>true</a> min:flags.20?<a href='/constructor/true'>true</a> bot_inline_geo:flags.21?<a href='/constructor/true'>true</a> support:flags.23?<a href='/constructor/true'>true</a> scam:flags.24?<a href='/constructor/true'>true</a> apply_min_photo:flags.25?<a href='/constructor/true'>true</a> fake:flags.26?<a href='/constructor/true'>true</a> bot_attach_menu:flags.27?<a href='/constructor/true'>true</a> premium:flags.28?<a href='/constructor/true'>true</a> attach_menu_enabled:flags.29?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> bot_can_edit:flags2.1?<a href='/constructor/true'>true</a> close_friend:flags2.2?<a href='/constructor/true'>true</a> stories_hidden:flags2.3?<a href='/constructor/true'>true</a> stories_unavailable:flags2.4?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.0?<a href='/type/long'>long</a> first_name:flags.1?<a href='/type/string'>string</a> last_name:flags.2?<a href='/type/string'>string</a> username:flags.3?<a href='/type/string'>string</a> phone:flags.4?<a href='/type/string'>string</a> photo:flags.5?<a href='/type/UserProfilePhoto'>UserProfilePhoto</a> status:flags.6?<a href='/type/UserStatus'>UserStatus</a> bot_info_version:flags.14?<a href='/type/int'>int</a> restriction_reason:flags.18?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href='/type/string'>string</a> lang_code:flags.22?<a href='/type/string'>string</a> emoji_status:flags.30?<a href='/type/EmojiStatus'>EmojiStatus</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.5?<a href='/type/int'>int</a> = <a href='/type/User'>User</a>;
|
||||
<a href='/constructor/user'>user</a>#215c4438 flags:<a href='/type/%23'>#</a> self:flags.10?<a href='/constructor/true'>true</a> contact:flags.11?<a href='/constructor/true'>true</a> mutual_contact:flags.12?<a href='/constructor/true'>true</a> deleted:flags.13?<a href='/constructor/true'>true</a> bot:flags.14?<a href='/constructor/true'>true</a> bot_chat_history:flags.15?<a href='/constructor/true'>true</a> bot_nochats:flags.16?<a href='/constructor/true'>true</a> verified:flags.17?<a href='/constructor/true'>true</a> restricted:flags.18?<a href='/constructor/true'>true</a> min:flags.20?<a href='/constructor/true'>true</a> bot_inline_geo:flags.21?<a href='/constructor/true'>true</a> support:flags.23?<a href='/constructor/true'>true</a> scam:flags.24?<a href='/constructor/true'>true</a> apply_min_photo:flags.25?<a href='/constructor/true'>true</a> fake:flags.26?<a href='/constructor/true'>true</a> bot_attach_menu:flags.27?<a href='/constructor/true'>true</a> premium:flags.28?<a href='/constructor/true'>true</a> attach_menu_enabled:flags.29?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> bot_can_edit:flags2.1?<a href='/constructor/true'>true</a> close_friend:flags2.2?<a href='/constructor/true'>true</a> stories_hidden:flags2.3?<a href='/constructor/true'>true</a> stories_unavailable:flags2.4?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.0?<a href='/type/long'>long</a> first_name:flags.1?<a href='/type/string'>string</a> last_name:flags.2?<a href='/type/string'>string</a> username:flags.3?<a href='/type/string'>string</a> phone:flags.4?<a href='/type/string'>string</a> photo:flags.5?<a href='/type/UserProfilePhoto'>UserProfilePhoto</a> status:flags.6?<a href='/type/UserStatus'>UserStatus</a> bot_info_version:flags.14?<a href='/type/int'>int</a> restriction_reason:flags.18?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href='/type/string'>string</a> lang_code:flags.22?<a href='/type/string'>string</a> emoji_status:flags.30?<a href='/type/EmojiStatus'>EmojiStatus</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.5?<a href='/type/int'>int</a> color:flags2.8?<a href='/type/PeerColor'>PeerColor</a> profile_color:flags2.9?<a href='/type/PeerColor'>PeerColor</a> = <a href='/type/User'>User</a>;
|
||||
|
||||
<a href='/constructor/contacts.contacts'>contacts.contacts</a>#eae87e42 contacts:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Contact'>Contact</a>> saved_count:<a href='/type/int'>int</a> users:<a href='/type/Vector%20t'>Vector</a><<a href='/type/User'>User</a>> = <a href='/type/contacts.Contacts'>contacts.Contacts</a>;
|
||||
<a href='/constructor/contacts.contactsNotModified'>contacts.contactsNotModified</a>#b74ba9d2 = <a href='/type/contacts.Contacts'>contacts.Contacts</a>;
|
||||
|
|
|
@ -73,9 +73,9 @@ Thus, the comment section of a particular post can be disabled by removing the a
|
|||
<h4><a class="anchor" href="#replies" id="replies" name="replies"><i class="anchor-icon"></i></a>@replies</h4>
|
||||
<pre><code><a href='/constructor/messageFwdHeader'>messageFwdHeader</a>#5f777dce flags:<a href='/type/%23'>#</a> imported:flags.7?<a href='/constructor/true'>true</a> from_id:flags.0?<a href='/type/Peer'>Peer</a> from_name:flags.5?<a href='/type/string'>string</a> date:<a href='/type/int'>int</a> channel_post:flags.2?<a href='/type/int'>int</a> post_author:flags.3?<a href='/type/string'>string</a> saved_from_peer:flags.4?<a href='/type/Peer'>Peer</a> saved_from_msg_id:flags.4?<a href='/type/int'>int</a> psa_type:flags.6?<a href='/type/string'>string</a> = <a href='/type/MessageFwdHeader'>MessageFwdHeader</a>;
|
||||
|
||||
<a href='/constructor/messageReplyHeader'>messageReplyHeader</a>#a6d57763 flags:<a href='/type/%23'>#</a> reply_to_scheduled:flags.2?<a href='/constructor/true'>true</a> forum_topic:flags.3?<a href='/constructor/true'>true</a> reply_to_msg_id:<a href='/type/int'>int</a> reply_to_peer_id:flags.0?<a href='/type/Peer'>Peer</a> reply_to_top_id:flags.1?<a href='/type/int'>int</a> = <a href='/type/MessageReplyHeader'>MessageReplyHeader</a>;
|
||||
<a href='/constructor/messageReplyHeader'>messageReplyHeader</a>#afbc09db flags:<a href='/type/%23'>#</a> reply_to_scheduled:flags.2?<a href='/constructor/true'>true</a> forum_topic:flags.3?<a href='/constructor/true'>true</a> quote:flags.9?<a href='/constructor/true'>true</a> reply_to_msg_id:flags.4?<a href='/type/int'>int</a> reply_to_peer_id:flags.0?<a href='/type/Peer'>Peer</a> reply_from:flags.5?<a href='/type/MessageFwdHeader'>MessageFwdHeader</a> reply_media:flags.8?<a href='/type/MessageMedia'>MessageMedia</a> reply_to_top_id:flags.1?<a href='/type/int'>int</a> quote_text:flags.6?<a href='/type/string'>string</a> quote_entities:flags.7?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> quote_offset:flags.10?<a href='/type/int'>int</a> = <a href='/type/MessageReplyHeader'>MessageReplyHeader</a>;
|
||||
|
||||
<a href='/constructor/message'>message</a>#38116ee0 flags:<a href='/type/%23'>#</a> out:flags.1?<a href='/constructor/true'>true</a> mentioned:flags.4?<a href='/constructor/true'>true</a> media_unread:flags.5?<a href='/constructor/true'>true</a> silent:flags.13?<a href='/constructor/true'>true</a> post:flags.14?<a href='/constructor/true'>true</a> from_scheduled:flags.18?<a href='/constructor/true'>true</a> legacy:flags.19?<a href='/constructor/true'>true</a> edit_hide:flags.21?<a href='/constructor/true'>true</a> pinned:flags.24?<a href='/constructor/true'>true</a> noforwards:flags.26?<a href='/constructor/true'>true</a> id:<a href='/type/int'>int</a> from_id:flags.8?<a href='/type/Peer'>Peer</a> peer_id:<a href='/type/Peer'>Peer</a> fwd_from:flags.2?<a href='/type/MessageFwdHeader'>MessageFwdHeader</a> via_bot_id:flags.11?<a href='/type/long'>long</a> reply_to:flags.3?<a href='/type/MessageReplyHeader'>MessageReplyHeader</a> date:<a href='/type/int'>int</a> message:<a href='/type/string'>string</a> media:flags.9?<a href='/type/MessageMedia'>MessageMedia</a> reply_markup:flags.6?<a href='/type/ReplyMarkup'>ReplyMarkup</a> entities:flags.7?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> views:flags.10?<a href='/type/int'>int</a> forwards:flags.10?<a href='/type/int'>int</a> replies:flags.23?<a href='/type/MessageReplies'>MessageReplies</a> edit_date:flags.15?<a href='/type/int'>int</a> post_author:flags.16?<a href='/type/string'>string</a> grouped_id:flags.17?<a href='/type/long'>long</a> reactions:flags.20?<a href='/type/MessageReactions'>MessageReactions</a> restriction_reason:flags.22?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> ttl_period:flags.25?<a href='/type/int'>int</a> = <a href='/type/Message'>Message</a>;
|
||||
<a href='/constructor/message'>message</a>#38116ee0 flags:<a href='/type/%23'>#</a> out:flags.1?<a href='/constructor/true'>true</a> mentioned:flags.4?<a href='/constructor/true'>true</a> media_unread:flags.5?<a href='/constructor/true'>true</a> silent:flags.13?<a href='/constructor/true'>true</a> post:flags.14?<a href='/constructor/true'>true</a> from_scheduled:flags.18?<a href='/constructor/true'>true</a> legacy:flags.19?<a href='/constructor/true'>true</a> edit_hide:flags.21?<a href='/constructor/true'>true</a> pinned:flags.24?<a href='/constructor/true'>true</a> noforwards:flags.26?<a href='/constructor/true'>true</a> invert_media:flags.27?<a href='/constructor/true'>true</a> id:<a href='/type/int'>int</a> from_id:flags.8?<a href='/type/Peer'>Peer</a> peer_id:<a href='/type/Peer'>Peer</a> fwd_from:flags.2?<a href='/type/MessageFwdHeader'>MessageFwdHeader</a> via_bot_id:flags.11?<a href='/type/long'>long</a> reply_to:flags.3?<a href='/type/MessageReplyHeader'>MessageReplyHeader</a> date:<a href='/type/int'>int</a> message:<a href='/type/string'>string</a> media:flags.9?<a href='/type/MessageMedia'>MessageMedia</a> reply_markup:flags.6?<a href='/type/ReplyMarkup'>ReplyMarkup</a> entities:flags.7?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> views:flags.10?<a href='/type/int'>int</a> forwards:flags.10?<a href='/type/int'>int</a> replies:flags.23?<a href='/type/MessageReplies'>MessageReplies</a> edit_date:flags.15?<a href='/type/int'>int</a> post_author:flags.16?<a href='/type/string'>string</a> grouped_id:flags.17?<a href='/type/long'>long</a> reactions:flags.20?<a href='/type/MessageReactions'>MessageReactions</a> restriction_reason:flags.22?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> ttl_period:flags.25?<a href='/type/int'>int</a> = <a href='/type/Message'>Message</a>;
|
||||
|
||||
<a href='/constructor/updateNewMessage'>updateNewMessage</a>#1f2b0afd message:<a href='/type/Message'>Message</a> pts:<a href='/type/int'>int</a> pts_count:<a href='/type/int'>int</a> = <a href='/type/Update'>Update</a>;
|
||||
<a href='/constructor/updateNewChannelMessage'>updateNewChannelMessage</a>#62ba04d9 message:<a href='/type/Message'>Message</a> pts:<a href='/type/int'>int</a> pts_count:<a href='/type/int'>int</a> = <a href='/type/Update'>Update</a>;
|
||||
|
@ -130,7 +130,7 @@ Before linking a supergroup to a channel, access to the supergroup's old message
|
|||
|
||||
<a href='/method/channels.togglePreHistoryHidden'>channels.togglePreHistoryHidden</a>#eabbb94c channel:<a href='/type/InputChannel'>InputChannel</a> enabled:<a href='/type/Bool'>Bool</a> = <a href='/type/Updates'>Updates</a>;</code></pre>
|
||||
<h3><a class="anchor" href="#requiring-users-to-join-the-group" id="requiring-users-to-join-the-group" name="requiring-users-to-join-the-group"><i class="anchor-icon"></i></a>Requiring users to join the group</h3>
|
||||
<pre><code><a href='/constructor/channel'>channel</a>#94f592db flags:<a href='/type/%23'>#</a> creator:flags.0?<a href='/constructor/true'>true</a> left:flags.2?<a href='/constructor/true'>true</a> broadcast:flags.5?<a href='/constructor/true'>true</a> verified:flags.7?<a href='/constructor/true'>true</a> megagroup:flags.8?<a href='/constructor/true'>true</a> restricted:flags.9?<a href='/constructor/true'>true</a> signatures:flags.11?<a href='/constructor/true'>true</a> min:flags.12?<a href='/constructor/true'>true</a> scam:flags.19?<a href='/constructor/true'>true</a> has_link:flags.20?<a href='/constructor/true'>true</a> has_geo:flags.21?<a href='/constructor/true'>true</a> slowmode_enabled:flags.22?<a href='/constructor/true'>true</a> call_active:flags.23?<a href='/constructor/true'>true</a> call_not_empty:flags.24?<a href='/constructor/true'>true</a> fake:flags.25?<a href='/constructor/true'>true</a> gigagroup:flags.26?<a href='/constructor/true'>true</a> noforwards:flags.27?<a href='/constructor/true'>true</a> join_to_send:flags.28?<a href='/constructor/true'>true</a> join_request:flags.29?<a href='/constructor/true'>true</a> forum:flags.30?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> stories_hidden:flags2.1?<a href='/constructor/true'>true</a> stories_hidden_min:flags2.2?<a href='/constructor/true'>true</a> stories_unavailable:flags2.3?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.13?<a href='/type/long'>long</a> title:<a href='/type/string'>string</a> username:flags.6?<a href='/type/string'>string</a> photo:<a href='/type/ChatPhoto'>ChatPhoto</a> date:<a href='/type/int'>int</a> restriction_reason:flags.9?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> admin_rights:flags.14?<a href='/type/ChatAdminRights'>ChatAdminRights</a> banned_rights:flags.15?<a href='/type/ChatBannedRights'>ChatBannedRights</a> default_banned_rights:flags.18?<a href='/type/ChatBannedRights'>ChatBannedRights</a> participants_count:flags.17?<a href='/type/int'>int</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.4?<a href='/type/int'>int</a> = <a href='/type/Chat'>Chat</a>;
|
||||
<pre><code><a href='/constructor/channel'>channel</a>#8e87ccd8 flags:<a href='/type/%23'>#</a> creator:flags.0?<a href='/constructor/true'>true</a> left:flags.2?<a href='/constructor/true'>true</a> broadcast:flags.5?<a href='/constructor/true'>true</a> verified:flags.7?<a href='/constructor/true'>true</a> megagroup:flags.8?<a href='/constructor/true'>true</a> restricted:flags.9?<a href='/constructor/true'>true</a> signatures:flags.11?<a href='/constructor/true'>true</a> min:flags.12?<a href='/constructor/true'>true</a> scam:flags.19?<a href='/constructor/true'>true</a> has_link:flags.20?<a href='/constructor/true'>true</a> has_geo:flags.21?<a href='/constructor/true'>true</a> slowmode_enabled:flags.22?<a href='/constructor/true'>true</a> call_active:flags.23?<a href='/constructor/true'>true</a> call_not_empty:flags.24?<a href='/constructor/true'>true</a> fake:flags.25?<a href='/constructor/true'>true</a> gigagroup:flags.26?<a href='/constructor/true'>true</a> noforwards:flags.27?<a href='/constructor/true'>true</a> join_to_send:flags.28?<a href='/constructor/true'>true</a> join_request:flags.29?<a href='/constructor/true'>true</a> forum:flags.30?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> stories_hidden:flags2.1?<a href='/constructor/true'>true</a> stories_hidden_min:flags2.2?<a href='/constructor/true'>true</a> stories_unavailable:flags2.3?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.13?<a href='/type/long'>long</a> title:<a href='/type/string'>string</a> username:flags.6?<a href='/type/string'>string</a> photo:<a href='/type/ChatPhoto'>ChatPhoto</a> date:<a href='/type/int'>int</a> restriction_reason:flags.9?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> admin_rights:flags.14?<a href='/type/ChatAdminRights'>ChatAdminRights</a> banned_rights:flags.15?<a href='/type/ChatBannedRights'>ChatBannedRights</a> default_banned_rights:flags.18?<a href='/type/ChatBannedRights'>ChatBannedRights</a> participants_count:flags.17?<a href='/type/int'>int</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.4?<a href='/type/int'>int</a> color:flags2.7?<a href='/type/PeerColor'>PeerColor</a> = <a href='/type/Chat'>Chat</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<div id="dev_page_content"><!-- scroll_nav -->
|
||||
|
||||
<p>Telegram allows creating forums with multiple distinct topics.</p>
|
||||
<pre><code><a href='/constructor/channel'>channel</a>#94f592db flags:<a href='/type/%23'>#</a> creator:flags.0?<a href='/constructor/true'>true</a> left:flags.2?<a href='/constructor/true'>true</a> broadcast:flags.5?<a href='/constructor/true'>true</a> verified:flags.7?<a href='/constructor/true'>true</a> megagroup:flags.8?<a href='/constructor/true'>true</a> restricted:flags.9?<a href='/constructor/true'>true</a> signatures:flags.11?<a href='/constructor/true'>true</a> min:flags.12?<a href='/constructor/true'>true</a> scam:flags.19?<a href='/constructor/true'>true</a> has_link:flags.20?<a href='/constructor/true'>true</a> has_geo:flags.21?<a href='/constructor/true'>true</a> slowmode_enabled:flags.22?<a href='/constructor/true'>true</a> call_active:flags.23?<a href='/constructor/true'>true</a> call_not_empty:flags.24?<a href='/constructor/true'>true</a> fake:flags.25?<a href='/constructor/true'>true</a> gigagroup:flags.26?<a href='/constructor/true'>true</a> noforwards:flags.27?<a href='/constructor/true'>true</a> join_to_send:flags.28?<a href='/constructor/true'>true</a> join_request:flags.29?<a href='/constructor/true'>true</a> forum:flags.30?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> stories_hidden:flags2.1?<a href='/constructor/true'>true</a> stories_hidden_min:flags2.2?<a href='/constructor/true'>true</a> stories_unavailable:flags2.3?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.13?<a href='/type/long'>long</a> title:<a href='/type/string'>string</a> username:flags.6?<a href='/type/string'>string</a> photo:<a href='/type/ChatPhoto'>ChatPhoto</a> date:<a href='/type/int'>int</a> restriction_reason:flags.9?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> admin_rights:flags.14?<a href='/type/ChatAdminRights'>ChatAdminRights</a> banned_rights:flags.15?<a href='/type/ChatBannedRights'>ChatBannedRights</a> default_banned_rights:flags.18?<a href='/type/ChatBannedRights'>ChatBannedRights</a> participants_count:flags.17?<a href='/type/int'>int</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.4?<a href='/type/int'>int</a> = <a href='/type/Chat'>Chat</a>;
|
||||
<pre><code><a href='/constructor/channel'>channel</a>#8e87ccd8 flags:<a href='/type/%23'>#</a> creator:flags.0?<a href='/constructor/true'>true</a> left:flags.2?<a href='/constructor/true'>true</a> broadcast:flags.5?<a href='/constructor/true'>true</a> verified:flags.7?<a href='/constructor/true'>true</a> megagroup:flags.8?<a href='/constructor/true'>true</a> restricted:flags.9?<a href='/constructor/true'>true</a> signatures:flags.11?<a href='/constructor/true'>true</a> min:flags.12?<a href='/constructor/true'>true</a> scam:flags.19?<a href='/constructor/true'>true</a> has_link:flags.20?<a href='/constructor/true'>true</a> has_geo:flags.21?<a href='/constructor/true'>true</a> slowmode_enabled:flags.22?<a href='/constructor/true'>true</a> call_active:flags.23?<a href='/constructor/true'>true</a> call_not_empty:flags.24?<a href='/constructor/true'>true</a> fake:flags.25?<a href='/constructor/true'>true</a> gigagroup:flags.26?<a href='/constructor/true'>true</a> noforwards:flags.27?<a href='/constructor/true'>true</a> join_to_send:flags.28?<a href='/constructor/true'>true</a> join_request:flags.29?<a href='/constructor/true'>true</a> forum:flags.30?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> stories_hidden:flags2.1?<a href='/constructor/true'>true</a> stories_hidden_min:flags2.2?<a href='/constructor/true'>true</a> stories_unavailable:flags2.3?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.13?<a href='/type/long'>long</a> title:<a href='/type/string'>string</a> username:flags.6?<a href='/type/string'>string</a> photo:<a href='/type/ChatPhoto'>ChatPhoto</a> date:<a href='/type/int'>int</a> restriction_reason:flags.9?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> admin_rights:flags.14?<a href='/type/ChatAdminRights'>ChatAdminRights</a> banned_rights:flags.15?<a href='/type/ChatBannedRights'>ChatBannedRights</a> default_banned_rights:flags.18?<a href='/type/ChatBannedRights'>ChatBannedRights</a> participants_count:flags.17?<a href='/type/int'>int</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.4?<a href='/type/int'>int</a> color:flags2.7?<a href='/type/PeerColor'>PeerColor</a> = <a href='/type/Chat'>Chat</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
|
@ -71,7 +71,7 @@ If the group is a <a href="/api/channel#basic-groups">basic group</a>, it should
|
|||
<a href='/constructor/updateChannelPinnedTopic'>updateChannelPinnedTopic</a>#192efbe3 flags:<a href='/type/%23'>#</a> pinned:flags.0?<a href='/constructor/true'>true</a> channel_id:<a href='/type/long'>long</a> topic_id:<a href='/type/int'>int</a> = <a href='/type/Update'>Update</a>;
|
||||
<a href='/constructor/updateChannelPinnedTopics'>updateChannelPinnedTopics</a>#fe198602 flags:<a href='/type/%23'>#</a> channel_id:<a href='/type/long'>long</a> order:flags.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/int'>int</a>> = <a href='/type/Update'>Update</a>;
|
||||
|
||||
<a href='/constructor/inputReplyToMessage'>inputReplyToMessage</a>#9c5386e4 flags:<a href='/type/%23'>#</a> reply_to_msg_id:<a href='/type/int'>int</a> top_msg_id:flags.0?<a href='/type/int'>int</a> = <a href='/type/InputReplyTo'>InputReplyTo</a>;
|
||||
<a href='/constructor/inputReplyToMessage'>inputReplyToMessage</a>#22c0f6d5 flags:<a href='/type/%23'>#</a> reply_to_msg_id:<a href='/type/int'>int</a> top_msg_id:flags.0?<a href='/type/int'>int</a> reply_to_peer_id:flags.1?<a href='/type/InputPeer'>InputPeer</a> quote_text:flags.2?<a href='/type/string'>string</a> quote_entities:flags.3?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> quote_offset:flags.4?<a href='/type/int'>int</a> = <a href='/type/InputReplyTo'>InputReplyTo</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
|
|
|
@ -333,6 +333,23 @@
|
|||
<h4><a class="anchor" href="#schema-changes" id="schema-changes" name="schema-changes"><i class="anchor-icon"></i></a>Schema changes</h4>
|
||||
<h5><a class="anchor" href="#new-methods" id="new-methods" name="new-methods"><i class="anchor-icon"></i></a>New Methods</h5>
|
||||
<ul>
|
||||
<li>Added <a href="/method/contacts.editCloseFriends">contacts.editCloseFriends</a> - Edit the <a href="/api/privacy">close friends list, see here »</a> for more info.</li>
|
||||
<li>Added <a href="/method/stories.canSendStory">stories.canSendStory</a> - Check whether we can post stories as the specified peer.</li>
|
||||
<li>Added <a href="/method/stories.sendStory">stories.sendStory</a> - Uploads a <a href="/api/stories">Telegram Story</a>.</li>
|
||||
<li>Added <a href="/method/stories.editStory">stories.editStory</a> - Edit an uploaded <a href="/api/stories">story</a></li>
|
||||
<li>Added <a href="/method/stories.deleteStories">stories.deleteStories</a> - Deletes some posted <a href="/api/stories">stories</a>.</li>
|
||||
<li>Added <a href="/method/stories.togglePinned">stories.togglePinned</a> - Pin or unpin one or more stories</li>
|
||||
<li>Added <a href="/method/stories.getAllStories">stories.getAllStories</a> - Fetch the List of active (or active and hidden) stories, see <a href="/api/stories#watching-stories">here »</a> for more info on watching stories.</li>
|
||||
<li>Added <a href="/method/stories.getPinnedStories">stories.getPinnedStories</a> - Fetch the <a href="/api/stories#pinned-or-archived-stories">stories</a> pinned on a peer's profile.</li>
|
||||
<li>Added <a href="/method/stories.getStoriesArchive">stories.getStoriesArchive</a> - Fetch the <a href="/api/stories#pinned-or-archived-stories">story archive »</a> of a peer we control.</li>
|
||||
<li>Added <a href="/method/stories.getStoriesByID">stories.getStoriesByID</a> - Obtain full info about a set of <a href="/api/stories">stories</a> by their IDs.</li>
|
||||
<li>Added <a href="/method/stories.toggleAllStoriesHidden">stories.toggleAllStoriesHidden</a> - Hide the active stories of a specific peer, preventing them from being displayed on the action bar on the homescreen.</li>
|
||||
<li>Added <a href="/method/stories.readStories">stories.readStories</a> - Mark all stories up to a certain ID as read, for a given peer; will emit an <a href="/constructor/updateReadStories">updateReadStories</a> update to all logged-in sessions.</li>
|
||||
<li>Added <a href="/method/stories.incrementStoryViews">stories.incrementStoryViews</a> - Increment the view counter of one or more stories.</li>
|
||||
<li>Added <a href="/method/stories.getStoryViewsList">stories.getStoryViewsList</a> - Obtain the list of users that have viewed a specific <a href="/api/stories">story we posted</a></li>
|
||||
<li>Added <a href="/method/stories.getStoriesViews">stories.getStoriesViews</a> - Obtain info about the view count, forward count, reactions and recent viewers of one or more <a href="/api/stories">stories</a>.</li>
|
||||
<li>Added <a href="/method/stories.exportStoryLink">stories.exportStoryLink</a> - Generate a <a href="/api/links#story-links">story deep link</a> for a specific story</li>
|
||||
<li>Added <a href="/method/stories.report">stories.report</a> - Report a story.</li>
|
||||
<li>Added <a href="/method/stories.activateStealthMode">stories.activateStealthMode</a> - Activates <a href="/api/stories#stealth-mode">stories stealth mode</a>, see <a href="/api/stories#stealth-mode">here »</a> for more info.</li>
|
||||
<li>Added <a href="/method/contacts.setBlocked">contacts.setBlocked</a> - Replace the contents of an entire <a href="/api/block">blocklist, see here for more info »</a>.</li>
|
||||
<li>Added <a href="/method/stories.sendReaction">stories.sendReaction</a> - React to a story.</li>
|
||||
|
@ -354,33 +371,42 @@
|
|||
<li>Added <strong>flags</strong>, <strong>my_stories_from</strong> parameters in <a href="/method/contacts.block">contacts.block</a></li>
|
||||
<li>Added <strong>flags</strong>, <strong>my_stories_from</strong> parameters in <a href="/method/contacts.unblock">contacts.unblock</a></li>
|
||||
<li>Added <strong>flags</strong>, <strong>my_stories_from</strong> parameters in <a href="/method/contacts.getBlocked">contacts.getBlocked</a></li>
|
||||
<li>Added <strong>reply_to</strong> parameter, removed <strong>reply_to_msg_id</strong>, <strong>top_msg_id</strong> parameters in <a href="/method/messages.sendMessage">messages.sendMessage</a></li>
|
||||
<li>Added <strong>reply_to</strong> parameter, removed <strong>reply_to_msg_id</strong>, <strong>top_msg_id</strong> parameters in <a href="/method/messages.sendMedia">messages.sendMedia</a></li>
|
||||
<li>Added <strong>reply_to</strong> parameter, removed <strong>reply_to_msg_id</strong>, <strong>top_msg_id</strong> parameters in <a href="/method/messages.sendInlineBotResult">messages.sendInlineBotResult</a></li>
|
||||
<li>Added <strong>reply_to</strong> parameter, removed <strong>reply_to_msg_id</strong> parameter in <a href="/method/messages.sendScreenshotNotification">messages.sendScreenshotNotification</a></li>
|
||||
<li>Added <strong>reply_to</strong> parameter, removed <strong>reply_to_msg_id</strong>, <strong>top_msg_id</strong> parameters in <a href="/method/messages.sendMultiMedia">messages.sendMultiMedia</a></li>
|
||||
<li>Added <strong>compare_stories</strong> parameter in <a href="/method/account.getNotifyExceptions">account.getNotifyExceptions</a></li>
|
||||
<li>Added <strong>confirmed</strong> parameter in <a href="/method/account.changeAuthorizationSettings">account.changeAuthorizationSettings</a></li>
|
||||
<li>Added <strong>reply_to</strong> parameter, removed <strong>reply_to_msg_id</strong>, <strong>top_msg_id</strong> parameters in <a href="/method/messages.requestWebView">messages.requestWebView</a></li>
|
||||
<li>Added <strong>reply_to</strong> parameter, removed <strong>reply_to_msg_id</strong>, <strong>top_msg_id</strong> parameters in <a href="/method/messages.prolongWebView">messages.prolongWebView</a></li>
|
||||
<li>Added <strong>from_side_menu</strong>, <strong>start_param</strong> parameters, changed type of <strong>url</strong> from <strong>string</strong> to <strong>flags.3?string</strong> in <a href="/method/messages.requestSimpleWebView">messages.requestSimpleWebView</a></li>
|
||||
<li>Added <strong>peer</strong> parameter in <a href="/method/stories.canSendStory">stories.canSendStory</a></li>
|
||||
<li>Added <strong>peer</strong>, <strong>media_areas</strong> parameters in <a href="/method/stories.sendStory">stories.sendStory</a></li>
|
||||
<li>Added <strong>peer</strong>, <strong>media_areas</strong> parameters in <a href="/method/stories.editStory">stories.editStory</a></li>
|
||||
<li>Added <strong>peer</strong> parameter in <a href="/method/stories.deleteStories">stories.deleteStories</a></li>
|
||||
<li>Added <strong>peer</strong> parameter in <a href="/method/stories.togglePinned">stories.togglePinned</a></li>
|
||||
<li>Added <strong>peer</strong> parameter, removed <strong>user_id</strong> parameter in <a href="/method/stories.getPinnedStories">stories.getPinnedStories</a></li>
|
||||
<li>Added <strong>peer</strong> parameter in <a href="/method/stories.getStoriesArchive">stories.getStoriesArchive</a></li>
|
||||
<li>Added <strong>peer</strong> parameter, removed <strong>user_id</strong> parameter in <a href="/method/stories.getStoriesByID">stories.getStoriesByID</a></li>
|
||||
<li>Added <strong>peer</strong> parameter, removed <strong>user_id</strong> parameter in <a href="/method/stories.readStories">stories.readStories</a></li>
|
||||
<li>Added <strong>peer</strong> parameter, removed <strong>user_id</strong> parameter in <a href="/method/stories.incrementStoryViews">stories.incrementStoryViews</a></li>
|
||||
<li>Added <strong>flags</strong>, <strong>just_contacts</strong>, <strong>reactions_first</strong>, <strong>peer</strong>, <strong>q</strong>, <strong>offset</strong> parameters, removed <strong>offset_date</strong>, <strong>offset_id</strong> parameters in <a href="/method/stories.getStoryViewsList">stories.getStoryViewsList</a></li>
|
||||
<li>Added <strong>peer</strong> parameter in <a href="/method/stories.getStoriesViews">stories.getStoriesViews</a></li>
|
||||
<li>Added <strong>peer</strong> parameter, removed <strong>user_id</strong> parameter in <a href="/method/stories.exportStoryLink">stories.exportStoryLink</a></li>
|
||||
<li>Added <strong>peer</strong> parameter, removed <strong>user_id</strong> parameter in <a href="/method/stories.report">stories.report</a></li>
|
||||
</ul>
|
||||
<h5><a class="anchor" href="#deleted-methods" id="deleted-methods" name="deleted-methods"><i class="anchor-icon"></i></a>Deleted Methods</h5>
|
||||
<ul>
|
||||
<li>Removed contacts.toggleStoriesHidden</li>
|
||||
<li>Removed stories.getUserStories</li>
|
||||
<li>Removed stories.getAllReadUserStories</li>
|
||||
<li>Removed users.getStoriesMaxIDs</li>
|
||||
</ul>
|
||||
<h5><a class="anchor" href="#new-constructors" id="new-constructors" name="new-constructors"><i class="anchor-icon"></i></a>New Constructors</h5>
|
||||
<ul>
|
||||
<li>Added <a href="/constructor/updateNewAuthorization">updateNewAuthorization</a> - A new session logged into the current user's account through an unknown device.</li>
|
||||
<li>Added <a href="/constructor/storyViews">storyViews</a> - Aggregated view and reaction information of a <a href="/api/stories">story</a>.</li>
|
||||
<li>Added <a href="/constructor/storyItemDeleted">storyItemDeleted</a> - Represents a previously active story, that was deleted</li>
|
||||
<li>Added <a href="/constructor/storyItemSkipped">storyItemSkipped</a> - Represents an active story, whose full information was omitted for space and performance reasons; use <a href="/method/stories.getStoriesByID">stories.getStoriesByID</a> to fetch full info about the skipped story when and if needed.</li>
|
||||
<li>Added <a href="/constructor/storyItem">storyItem</a> - Represents a <a href="/api/stories">story</a>.</li>
|
||||
<li>Added <a href="/constructor/updateStory">updateStory</a> - A new story was posted.</li>
|
||||
<li>Added <a href="/constructor/updateReadStories">updateReadStories</a> - Stories of a specific peer were marked as read.</li>
|
||||
<li>Added <a href="/constructor/stories.allStoriesNotModified">stories.allStoriesNotModified</a> - The list of active (or active and hidden) <a href="/api/stories#watching-stories">stories</a> has not changed.</li>
|
||||
<li>Added <a href="/constructor/stories.allStories">stories.allStories</a> - Full list of active (or active and hidden) <a href="/api/stories#watching-stories">stories</a>.</li>
|
||||
<li>Added <a href="/constructor/stories.stories">stories.stories</a> - List of <a href="/api/stories#pinned-or-archived-stories">stories</a></li>
|
||||
<li>Added <a href="/constructor/inputPrivacyValueAllowCloseFriends">inputPrivacyValueAllowCloseFriends</a> - Allow only <a href="/api/privacy">close friends »</a></li>
|
||||
<li>Added <a href="/constructor/privacyValueAllowCloseFriends">privacyValueAllowCloseFriends</a> - Allow only <a href="/api/privacy">close friends »</a></li>
|
||||
<li>Added <a href="/constructor/storyView">storyView</a> - <a href="/api/stories">Story</a> view date and reaction information</li>
|
||||
<li>Added <a href="/constructor/stories.storyViewsList">stories.storyViewsList</a> - Reaction and view counters for a <a href="/api/stories">story</a></li>
|
||||
<li>Added <a href="/constructor/stories.storyViews">stories.storyViews</a> - Reaction and view counters for a list of <a href="/api/stories">stories</a></li>
|
||||
<li>Added <a href="/constructor/inputReplyToMessage">inputReplyToMessage</a> - Reply to a message.</li>
|
||||
<li>Added <a href="/constructor/inputReplyToStory">inputReplyToStory</a> - Reply to a story.</li>
|
||||
<li>Added <a href="/constructor/messageReplyStoryHeader">messageReplyStoryHeader</a> - Represents a reply to a <a href="/api/stories">story</a></li>
|
||||
<li>Added <a href="/constructor/updateStoryID">updateStoryID</a> - A story was successfully uploaded.</li>
|
||||
<li>Added <a href="/constructor/exportedStoryLink">exportedStoryLink</a> - Represents a <a href="/api/stories#story-links">story deep link</a>.</li>
|
||||
<li>Added <a href="/constructor/inputMediaStory">inputMediaStory</a> - Forwarded story</li>
|
||||
<li>Added <a href="/constructor/messageMediaStory">messageMediaStory</a> - Represents a forwarded <a href="/api/stories">story</a> or a story mention.</li>
|
||||
<li>Added <a href="/constructor/webPageAttributeStory">webPageAttributeStory</a> - Webpage preview of a Telegram story</li>
|
||||
<li>Added <a href="/constructor/storiesStealthMode">storiesStealthMode</a> - Information about the current <a href="/api/stories#stealth-mode">stealth mode</a> session.</li>
|
||||
<li>Added <a href="/constructor/updateStoriesStealthMode">updateStoriesStealthMode</a> - Indicates that <a href="/api/stories#stealth-mode">stories stealth mode</a> was activated.</li>
|
||||
<li>Added <a href="/constructor/mediaAreaCoordinates">mediaAreaCoordinates</a> - Coordinates and size of a clicable rectangular area on top of a story.</li>
|
||||
|
@ -399,34 +425,29 @@
|
|||
</ul>
|
||||
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
||||
<ul>
|
||||
<li>Added <strong>blocked_my_stories_from</strong> parameter, changed type of <strong>stories</strong> from <strong>flags.25?UserStories</strong> to <strong>flags.25?PeerStories</strong> in <a href="/constructor/userFull">userFull</a></li>
|
||||
<li>Added <strong>view_forum_as_messages</strong> parameter in <a href="/constructor/dialog">dialog</a></li>
|
||||
<li>Added <strong>stories_muted</strong>, <strong>stories_hide_sender</strong>, <strong>stories_sound</strong> parameters in <a href="/constructor/inputPeerNotifySettings">inputPeerNotifySettings</a></li>
|
||||
<li>Added <strong>stories_muted</strong>, <strong>stories_hide_sender</strong>, <strong>stories_ios_sound</strong>, <strong>stories_android_sound</strong>, <strong>stories_other_sound</strong> parameters in <a href="/constructor/peerNotifySettings">peerNotifySettings</a></li>
|
||||
<li>Added <strong>stories_pinned_available</strong>, <strong>blocked_my_stories_from</strong>, <strong>stories</strong> parameters in <a href="/constructor/userFull">userFull</a></li>
|
||||
<li>Added <strong>alt_document</strong> parameter in <a href="/constructor/messageMediaDocument">messageMediaDocument</a></li>
|
||||
<li>Added <strong>nosound</strong>, <strong>preload_prefix_size</strong> parameters, changed type of <strong>duration</strong> from <strong>int</strong> to <strong>double</strong> in <a href="/constructor/documentAttributeVideo">documentAttributeVideo</a></li>
|
||||
<li>Added <strong>unconfirmed</strong> parameter in <a href="/constructor/authorization">authorization</a></li>
|
||||
<li>Added <strong>flags</strong>, <strong>date</strong> parameters in <a href="/constructor/updateReadMessagesContents">updateReadMessagesContents</a></li>
|
||||
<li>Added <strong>close_friend</strong>, <strong>stories_hidden</strong>, <strong>stories_unavailable</strong>, <strong>stories_max_id</strong> parameters in <a href="/constructor/user">user</a></li>
|
||||
<li>Added <strong>stories_hidden</strong>, <strong>stories_hidden_min</strong>, <strong>stories_unavailable</strong>, <strong>stories_max_id</strong> parameters in <a href="/constructor/channel">channel</a></li>
|
||||
<li>Added <strong>stories_pinned_available</strong>, <strong>view_forum_as_messages</strong>, <strong>stories</strong> parameters in <a href="/constructor/channelFull">channelFull</a></li>
|
||||
<li>Added <strong>terms_url</strong> parameter, removed <strong>recurring_terms_url</strong> parameter in <a href="/constructor/invoice">invoice</a></li>
|
||||
<li>Added <strong>from_request</strong> parameter in <a href="/constructor/messageActionBotAllowed">messageActionBotAllowed</a></li>
|
||||
<li>Added <strong>post_stories</strong>, <strong>edit_stories</strong>, <strong>delete_stories</strong> parameters in <a href="/constructor/chatAdminRights">chatAdminRights</a></li>
|
||||
<li>Added <strong>stories_preload</strong> parameter in <a href="/constructor/autoDownloadSettings">autoDownloadSettings</a></li>
|
||||
<li>Added <strong>keep_archived_unmuted</strong>, <strong>keep_archived_folders</strong> parameters, changed type of <strong>archive_and_mute_new_noncontact_peers</strong> from <strong>flags.0?Bool</strong> to <strong>flags.0?true</strong> in <a href="/constructor/globalPrivacySettings">globalPrivacySettings</a></li>
|
||||
<li>Added <strong>flags</strong>, <strong>blocked_my_stories_from</strong> parameters, changed type of <strong>blocked</strong> from <strong>Bool</strong> to <strong>flags.0?true</strong> in <a href="/constructor/updatePeerBlocked">updatePeerBlocked</a></li>
|
||||
<li>Added <strong>show_in_attach_menu</strong>, <strong>show_in_side_menu</strong>, <strong>side_menu_disclaimer_needed</strong> parameters, changed type of <strong>peer_types</strong> from <strong>Vector<AttachMenuPeerType></strong> to <strong>flags.3?Vector<AttachMenuPeerType></strong> in <a href="/constructor/attachMenuBot">attachMenuBot</a></li>
|
||||
<li>Added <strong>has_settings</strong> parameter in <a href="/constructor/messages.botApp">messages.botApp</a></li>
|
||||
<li>Added <strong>has_viewers</strong>, <strong>forwards_count</strong>, <strong>reactions</strong>, <strong>reactions_count</strong> parameters in <a href="/constructor/storyViews">storyViews</a></li>
|
||||
<li>Added <strong>out</strong>, <strong>media_areas</strong>, <strong>sent_reaction</strong> parameters in <a href="/constructor/storyItem">storyItem</a></li>
|
||||
<li>Added <strong>peer</strong> parameter, removed <strong>user_id</strong> parameter in <a href="/constructor/updateStory">updateStory</a></li>
|
||||
<li>Added <strong>peer</strong> parameter, removed <strong>user_id</strong> parameter in <a href="/constructor/updateReadStories">updateReadStories</a></li>
|
||||
<li>Added <strong>flags</strong>, <strong>stealth_mode</strong> parameters in <a href="/constructor/stories.allStoriesNotModified">stories.allStoriesNotModified</a></li>
|
||||
<li>Added <strong>peer_stories</strong>, <strong>chats</strong>, <strong>stealth_mode</strong> parameters, removed <strong>user_stories</strong> parameter in <a href="/constructor/stories.allStories">stories.allStories</a></li>
|
||||
<li>Added <strong>chats</strong> parameter in <a href="/constructor/stories.stories">stories.stories</a></li>
|
||||
<li>Added <strong>flags</strong>, <strong>blocked</strong>, <strong>blocked_my_stories_from</strong>, <strong>reaction</strong> parameters in <a href="/constructor/storyView">storyView</a></li>
|
||||
<li>Added <strong>flags</strong>, <strong>reactions_count</strong>, <strong>next_offset</strong> parameters in <a href="/constructor/stories.storyViewsList">stories.storyViewsList</a></li>
|
||||
<li>Added <strong>peer</strong> parameter, removed <strong>user_id</strong> parameter in <a href="/constructor/inputMediaStory">inputMediaStory</a></li>
|
||||
<li>Added <strong>peer</strong> parameter, removed <strong>user_id</strong> parameter in <a href="/constructor/messageMediaStory">messageMediaStory</a></li>
|
||||
<li>Added <strong>peer</strong> parameter, removed <strong>user_id</strong> parameter in <a href="/constructor/webPageAttributeStory">webPageAttributeStory</a></li>
|
||||
</ul>
|
||||
<h5><a class="anchor" href="#deleted-constructors" id="deleted-constructors" name="deleted-constructors"><i class="anchor-icon"></i></a>Deleted Constructors</h5>
|
||||
<ul>
|
||||
<li>Removed userStories</li>
|
||||
<li>Removed stories.userStories</li>
|
||||
<li>Removed messageEntityBlockquote</li>
|
||||
</ul>
|
||||
<h4><a class="anchor" href="#push-notification-changes" id="push-notification-changes" name="push-notification-changes"><i class="anchor-icon"></i></a>PUSH notification changes</h4>
|
||||
<h5><a class="anchor" href="#new-push-notifications" id="new-push-notifications" name="new-push-notifications"><i class="anchor-icon"></i></a>New PUSH notifications</h5>
|
||||
|
@ -475,27 +496,45 @@
|
|||
<li>Changed template from <code>{1}: {2} to your video</code> to <code>{2} to your video</code> in <a href="/api/push-updates#possible-notifications">REACT_VIDEO</a></li>
|
||||
</ul>
|
||||
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
||||
<div><pre><code><a href="/constructor/userFull">userFull</a>#b9b12c6c flags:<a href="/type/%23">#</a> blocked:flags.0?<a href="/constructor/true">true</a> phone_calls_available:flags.4?<a href="/constructor/true">true</a> phone_calls_private:flags.5?<a href="/constructor/true">true</a> can_pin_message:flags.7?<a href="/constructor/true">true</a> has_scheduled:flags.12?<a href="/constructor/true">true</a> video_calls_available:flags.13?<a href="/constructor/true">true</a> voice_messages_forbidden:flags.20?<a href="/constructor/true">true</a> translations_disabled:flags.23?<a href="/constructor/true">true</a> stories_pinned_available:flags.26?<a href="/constructor/true">true</a> blocked_my_stories_from:flags.27?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> about:flags.1?<a href="/type/string">string</a> settings:<a href="/type/PeerSettings">PeerSettings</a> personal_photo:flags.21?<a href="/type/Photo">Photo</a> profile_photo:flags.2?<a href="/type/Photo">Photo</a> fallback_photo:flags.22?<a href="/type/Photo">Photo</a> notify_settings:<a href="/type/PeerNotifySettings">PeerNotifySettings</a> bot_info:flags.3?<a href="/type/BotInfo">BotInfo</a> pinned_msg_id:flags.6?<a href="/type/int">int</a> common_chats_count:<a href="/type/int">int</a> folder_id:flags.11?<a href="/type/int">int</a> ttl_period:flags.14?<a href="/type/int">int</a> theme_emoticon:flags.15?<a href="/type/string">string</a> private_forward_name:flags.16?<a href="/type/string">string</a> bot_group_admin_rights:flags.17?<a href="/type/ChatAdminRights">ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href="/type/ChatAdminRights">ChatAdminRights</a> premium_gifts:flags.19?<a href="/type/Vector%20t">Vector</a><<a href="/type/PremiumGiftOption">PremiumGiftOption</a>> wallpaper:flags.24?<a href="/type/WallPaper">WallPaper</a> stories:flags.25?<a href="/type/PeerStories">PeerStories</a> = <a href="/type/UserFull">UserFull</a>;
|
||||
<div><pre><code><a href="/constructor/dialog">dialog</a>#d58a08c6 flags:<a href="/type/%23">#</a> pinned:flags.2?<a href="/constructor/true">true</a> unread_mark:flags.3?<a href="/constructor/true">true</a> view_forum_as_messages:flags.6?<a href="/constructor/true">true</a> peer:<a href="/type/Peer">Peer</a> top_message:<a href="/type/int">int</a> read_inbox_max_id:<a href="/type/int">int</a> read_outbox_max_id:<a href="/type/int">int</a> unread_count:<a href="/type/int">int</a> unread_mentions_count:<a href="/type/int">int</a> unread_reactions_count:<a href="/type/int">int</a> notify_settings:<a href="/type/PeerNotifySettings">PeerNotifySettings</a> pts:flags.0?<a href="/type/int">int</a> draft:flags.1?<a href="/type/DraftMessage">DraftMessage</a> folder_id:flags.4?<a href="/type/int">int</a> ttl_period:flags.5?<a href="/type/int">int</a> = <a href="/type/Dialog">Dialog</a>;<br>
|
||||
<a href="/constructor/inputPeerNotifySettings">inputPeerNotifySettings</a>#cacb6ae2 flags:<a href="/type/%23">#</a> show_previews:flags.0?<a href="/type/Bool">Bool</a> silent:flags.1?<a href="/type/Bool">Bool</a> mute_until:flags.2?<a href="/type/int">int</a> sound:flags.3?<a href="/type/NotificationSound">NotificationSound</a> stories_muted:flags.6?<a href="/type/Bool">Bool</a> stories_hide_sender:flags.7?<a href="/type/Bool">Bool</a> stories_sound:flags.8?<a href="/type/NotificationSound">NotificationSound</a> = <a href="/type/InputPeerNotifySettings">InputPeerNotifySettings</a>;<br>
|
||||
<a href="/constructor/peerNotifySettings">peerNotifySettings</a>#99622c0c flags:<a href="/type/%23">#</a> show_previews:flags.0?<a href="/type/Bool">Bool</a> silent:flags.1?<a href="/type/Bool">Bool</a> mute_until:flags.2?<a href="/type/int">int</a> ios_sound:flags.3?<a href="/type/NotificationSound">NotificationSound</a> android_sound:flags.4?<a href="/type/NotificationSound">NotificationSound</a> other_sound:flags.5?<a href="/type/NotificationSound">NotificationSound</a> stories_muted:flags.6?<a href="/type/Bool">Bool</a> stories_hide_sender:flags.7?<a href="/type/Bool">Bool</a> stories_ios_sound:flags.8?<a href="/type/NotificationSound">NotificationSound</a> stories_android_sound:flags.9?<a href="/type/NotificationSound">NotificationSound</a> stories_other_sound:flags.10?<a href="/type/NotificationSound">NotificationSound</a> = <a href="/type/PeerNotifySettings">PeerNotifySettings</a>;<br>
|
||||
<a href="/constructor/userFull">userFull</a>#b9b12c6c flags:<a href="/type/%23">#</a> blocked:flags.0?<a href="/constructor/true">true</a> phone_calls_available:flags.4?<a href="/constructor/true">true</a> phone_calls_private:flags.5?<a href="/constructor/true">true</a> can_pin_message:flags.7?<a href="/constructor/true">true</a> has_scheduled:flags.12?<a href="/constructor/true">true</a> video_calls_available:flags.13?<a href="/constructor/true">true</a> voice_messages_forbidden:flags.20?<a href="/constructor/true">true</a> translations_disabled:flags.23?<a href="/constructor/true">true</a> stories_pinned_available:flags.26?<a href="/constructor/true">true</a> blocked_my_stories_from:flags.27?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> about:flags.1?<a href="/type/string">string</a> settings:<a href="/type/PeerSettings">PeerSettings</a> personal_photo:flags.21?<a href="/type/Photo">Photo</a> profile_photo:flags.2?<a href="/type/Photo">Photo</a> fallback_photo:flags.22?<a href="/type/Photo">Photo</a> notify_settings:<a href="/type/PeerNotifySettings">PeerNotifySettings</a> bot_info:flags.3?<a href="/type/BotInfo">BotInfo</a> pinned_msg_id:flags.6?<a href="/type/int">int</a> common_chats_count:<a href="/type/int">int</a> folder_id:flags.11?<a href="/type/int">int</a> ttl_period:flags.14?<a href="/type/int">int</a> theme_emoticon:flags.15?<a href="/type/string">string</a> private_forward_name:flags.16?<a href="/type/string">string</a> bot_group_admin_rights:flags.17?<a href="/type/ChatAdminRights">ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href="/type/ChatAdminRights">ChatAdminRights</a> premium_gifts:flags.19?<a href="/type/Vector%20t">Vector</a><<a href="/type/PremiumGiftOption">PremiumGiftOption</a>> wallpaper:flags.24?<a href="/type/WallPaper">WallPaper</a> stories:flags.25?<a href="/type/PeerStories">PeerStories</a> = <a href="/type/UserFull">UserFull</a>;
|
||||
<a href="/constructor/updateNewAuthorization">updateNewAuthorization</a>#8951abef flags:<a href="/type/%23">#</a> unconfirmed:flags.0?<a href="/constructor/true">true</a> hash:<a href="/type/long">long</a> date:flags.0?<a href="/type/int">int</a> device:flags.0?<a href="/type/string">string</a> location:flags.0?<a href="/type/string">string</a> = <a href="/type/Update">Update</a>;<br>
|
||||
<a href="/constructor/messageMediaDocument">messageMediaDocument</a>#4cf4d72d flags:<a href="/type/%23">#</a> nopremium:flags.3?<a href="/constructor/true">true</a> spoiler:flags.4?<a href="/constructor/true">true</a> document:flags.0?<a href="/type/Document">Document</a> alt_document:flags.5?<a href="/type/Document">Document</a> ttl_seconds:flags.2?<a href="/type/int">int</a> = <a href="/type/MessageMedia">MessageMedia</a>;<br>
|
||||
<a href="/constructor/documentAttributeVideo">documentAttributeVideo</a>#d38ff1c2 flags:<a href="/type/%23">#</a> round_message:flags.0?<a href="/constructor/true">true</a> supports_streaming:flags.1?<a href="/constructor/true">true</a> nosound:flags.3?<a href="/constructor/true">true</a> duration:<a href="/type/double">double</a> w:<a href="/type/int">int</a> h:<a href="/type/int">int</a> preload_prefix_size:flags.2?<a href="/type/int">int</a> = <a href="/type/DocumentAttribute">DocumentAttribute</a>;<br>
|
||||
<a href="/constructor/authorization">authorization</a>#ad01d61d flags:<a href="/type/%23">#</a> current:flags.0?<a href="/constructor/true">true</a> official_app:flags.1?<a href="/constructor/true">true</a> password_pending:flags.2?<a href="/constructor/true">true</a> encrypted_requests_disabled:flags.3?<a href="/constructor/true">true</a> call_requests_disabled:flags.4?<a href="/constructor/true">true</a> unconfirmed:flags.5?<a href="/constructor/true">true</a> hash:<a href="/type/long">long</a> device_model:<a href="/type/string">string</a> platform:<a href="/type/string">string</a> system_version:<a href="/type/string">string</a> api_id:<a href="/type/int">int</a> app_name:<a href="/type/string">string</a> app_version:<a href="/type/string">string</a> date_created:<a href="/type/int">int</a> date_active:<a href="/type/int">int</a> ip:<a href="/type/string">string</a> country:<a href="/type/string">string</a> region:<a href="/type/string">string</a> = <a href="/type/Authorization">Authorization</a>;<br>
|
||||
<a href="/constructor/updateReadMessagesContents">updateReadMessagesContents</a>#f8227181 flags:<a href="/type/%23">#</a> messages:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> pts:<a href="/type/int">int</a> pts_count:<a href="/type/int">int</a> date:flags.0?<a href="/type/int">int</a> = <a href="/type/Update">Update</a>;<br>
|
||||
<a href="/constructor/updateReadMessagesContents">updateReadMessagesContents</a>#f8227181 flags:<a href="/type/%23">#</a> messages:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> pts:<a href="/type/int">int</a> pts_count:<a href="/type/int">int</a> date:flags.0?<a href="/type/int">int</a> = <a href="/type/Update">Update</a>;
|
||||
<a href="/constructor/user">user</a>#abb5f120 flags:<a href="/type/%23">#</a> self:flags.10?<a href="/constructor/true">true</a> contact:flags.11?<a href="/constructor/true">true</a> mutual_contact:flags.12?<a href="/constructor/true">true</a> deleted:flags.13?<a href="/constructor/true">true</a> bot:flags.14?<a href="/constructor/true">true</a> bot_chat_history:flags.15?<a href="/constructor/true">true</a> bot_nochats:flags.16?<a href="/constructor/true">true</a> verified:flags.17?<a href="/constructor/true">true</a> restricted:flags.18?<a href="/constructor/true">true</a> min:flags.20?<a href="/constructor/true">true</a> bot_inline_geo:flags.21?<a href="/constructor/true">true</a> support:flags.23?<a href="/constructor/true">true</a> scam:flags.24?<a href="/constructor/true">true</a> apply_min_photo:flags.25?<a href="/constructor/true">true</a> fake:flags.26?<a href="/constructor/true">true</a> bot_attach_menu:flags.27?<a href="/constructor/true">true</a> premium:flags.28?<a href="/constructor/true">true</a> attach_menu_enabled:flags.29?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</a> bot_can_edit:flags2.1?<a href="/constructor/true">true</a> close_friend:flags2.2?<a href="/constructor/true">true</a> stories_hidden:flags2.3?<a href="/constructor/true">true</a> stories_unavailable:flags2.4?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> access_hash:flags.0?<a href="/type/long">long</a> first_name:flags.1?<a href="/type/string">string</a> last_name:flags.2?<a href="/type/string">string</a> username:flags.3?<a href="/type/string">string</a> phone:flags.4?<a href="/type/string">string</a> photo:flags.5?<a href="/type/UserProfilePhoto">UserProfilePhoto</a> status:flags.6?<a href="/type/UserStatus">UserStatus</a> bot_info_version:flags.14?<a href="/type/int">int</a> restriction_reason:flags.18?<a href="/type/Vector%20t">Vector</a><<a href="/type/RestrictionReason">RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href="/type/string">string</a> lang_code:flags.22?<a href="/type/string">string</a> emoji_status:flags.30?<a href="/type/EmojiStatus">EmojiStatus</a> usernames:flags2.0?<a href="/type/Vector%20t">Vector</a><<a href="/type/Username">Username</a>> stories_max_id:flags2.5?<a href="/type/int">int</a> = <a href="/type/User">User</a>;<br>
|
||||
<a href="/constructor/channel">channel</a>#94f592db flags:<a href="/type/%23">#</a> creator:flags.0?<a href="/constructor/true">true</a> left:flags.2?<a href="/constructor/true">true</a> broadcast:flags.5?<a href="/constructor/true">true</a> verified:flags.7?<a href="/constructor/true">true</a> megagroup:flags.8?<a href="/constructor/true">true</a> restricted:flags.9?<a href="/constructor/true">true</a> signatures:flags.11?<a href="/constructor/true">true</a> min:flags.12?<a href="/constructor/true">true</a> scam:flags.19?<a href="/constructor/true">true</a> has_link:flags.20?<a href="/constructor/true">true</a> has_geo:flags.21?<a href="/constructor/true">true</a> slowmode_enabled:flags.22?<a href="/constructor/true">true</a> call_active:flags.23?<a href="/constructor/true">true</a> call_not_empty:flags.24?<a href="/constructor/true">true</a> fake:flags.25?<a href="/constructor/true">true</a> gigagroup:flags.26?<a href="/constructor/true">true</a> noforwards:flags.27?<a href="/constructor/true">true</a> join_to_send:flags.28?<a href="/constructor/true">true</a> join_request:flags.29?<a href="/constructor/true">true</a> forum:flags.30?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</a> stories_hidden:flags2.1?<a href="/constructor/true">true</a> stories_hidden_min:flags2.2?<a href="/constructor/true">true</a> stories_unavailable:flags2.3?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> access_hash:flags.13?<a href="/type/long">long</a> title:<a href="/type/string">string</a> username:flags.6?<a href="/type/string">string</a> photo:<a href="/type/ChatPhoto">ChatPhoto</a> date:<a href="/type/int">int</a> restriction_reason:flags.9?<a href="/type/Vector%20t">Vector</a><<a href="/type/RestrictionReason">RestrictionReason</a>> admin_rights:flags.14?<a href="/type/ChatAdminRights">ChatAdminRights</a> banned_rights:flags.15?<a href="/type/ChatBannedRights">ChatBannedRights</a> default_banned_rights:flags.18?<a href="/type/ChatBannedRights">ChatBannedRights</a> participants_count:flags.17?<a href="/type/int">int</a> usernames:flags2.0?<a href="/type/Vector%20t">Vector</a><<a href="/type/Username">Username</a>> stories_max_id:flags2.4?<a href="/type/int">int</a> = <a href="/type/Chat">Chat</a>;
|
||||
<a href="/constructor/channelFull">channelFull</a>#723027bd flags:<a href="/type/%23">#</a> can_view_participants:flags.3?<a href="/constructor/true">true</a> can_set_username:flags.6?<a href="/constructor/true">true</a> can_set_stickers:flags.7?<a href="/constructor/true">true</a> hidden_prehistory:flags.10?<a href="/constructor/true">true</a> can_set_location:flags.16?<a href="/constructor/true">true</a> has_scheduled:flags.19?<a href="/constructor/true">true</a> can_view_stats:flags.20?<a href="/constructor/true">true</a> blocked:flags.22?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</a> can_delete_channel:flags2.0?<a href="/constructor/true">true</a> antispam:flags2.1?<a href="/constructor/true">true</a> participants_hidden:flags2.2?<a href="/constructor/true">true</a> translations_disabled:flags2.3?<a href="/constructor/true">true</a> stories_pinned_available:flags2.5?<a href="/constructor/true">true</a> view_forum_as_messages:flags2.6?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> about:<a href="/type/string">string</a> participants_count:flags.0?<a href="/type/int">int</a> admins_count:flags.1?<a href="/type/int">int</a> kicked_count:flags.2?<a href="/type/int">int</a> banned_count:flags.2?<a href="/type/int">int</a> online_count:flags.13?<a href="/type/int">int</a> read_inbox_max_id:<a href="/type/int">int</a> read_outbox_max_id:<a href="/type/int">int</a> unread_count:<a href="/type/int">int</a> chat_photo:<a href="/type/Photo">Photo</a> notify_settings:<a href="/type/PeerNotifySettings">PeerNotifySettings</a> exported_invite:flags.23?<a href="/type/ExportedChatInvite">ExportedChatInvite</a> bot_info:<a href="/type/Vector%20t">Vector</a><<a href="/type/BotInfo">BotInfo</a>> migrated_from_chat_id:flags.4?<a href="/type/long">long</a> migrated_from_max_id:flags.4?<a href="/type/int">int</a> pinned_msg_id:flags.5?<a href="/type/int">int</a> stickerset:flags.8?<a href="/type/StickerSet">StickerSet</a> available_min_id:flags.9?<a href="/type/int">int</a> folder_id:flags.11?<a href="/type/int">int</a> linked_chat_id:flags.14?<a href="/type/long">long</a> location:flags.15?<a href="/type/ChannelLocation">ChannelLocation</a> slowmode_seconds:flags.17?<a href="/type/int">int</a> slowmode_next_send_date:flags.18?<a href="/type/int">int</a> stats_dc:flags.12?<a href="/type/int">int</a> pts:<a href="/type/int">int</a> call:flags.21?<a href="/type/InputGroupCall">InputGroupCall</a> ttl_period:flags.24?<a href="/type/int">int</a> pending_suggestions:flags.25?<a href="/type/Vector%20t">Vector</a><<a href="/type/string">string</a>> groupcall_default_join_as:flags.26?<a href="/type/Peer">Peer</a> theme_emoticon:flags.27?<a href="/type/string">string</a> requests_pending:flags.28?<a href="/type/int">int</a> recent_requesters:flags.28?<a href="/type/Vector%20t">Vector</a><<a href="/type/long">long</a>> default_send_as:flags.29?<a href="/type/Peer">Peer</a> available_reactions:flags.30?<a href="/type/ChatReactions">ChatReactions</a> stories:flags2.4?<a href="/type/PeerStories">PeerStories</a> = <a href="/type/ChatFull">ChatFull</a>;<br>
|
||||
<a href="/constructor/invoice">invoice</a>#5db95a15 flags:<a href="/type/%23">#</a> test:flags.0?<a href="/constructor/true">true</a> name_requested:flags.1?<a href="/constructor/true">true</a> phone_requested:flags.2?<a href="/constructor/true">true</a> email_requested:flags.3?<a href="/constructor/true">true</a> shipping_address_requested:flags.4?<a href="/constructor/true">true</a> flexible:flags.5?<a href="/constructor/true">true</a> phone_to_provider:flags.6?<a href="/constructor/true">true</a> email_to_provider:flags.7?<a href="/constructor/true">true</a> recurring:flags.9?<a href="/constructor/true">true</a> currency:<a href="/type/string">string</a> prices:<a href="/type/Vector%20t">Vector</a><<a href="/type/LabeledPrice">LabeledPrice</a>> max_tip_amount:flags.8?<a href="/type/long">long</a> suggested_tip_amounts:flags.8?<a href="/type/Vector%20t">Vector</a><<a href="/type/long">long</a>> terms_url:flags.10?<a href="/type/string">string</a> = <a href="/type/Invoice">Invoice</a>;<br>
|
||||
<a href="/constructor/messageActionBotAllowed">messageActionBotAllowed</a>#c516d679 flags:<a href="/type/%23">#</a> attach_menu:flags.1?<a href="/constructor/true">true</a> from_request:flags.3?<a href="/constructor/true">true</a> domain:flags.0?<a href="/type/string">string</a> app:flags.2?<a href="/type/BotApp">BotApp</a> = <a href="/type/MessageAction">MessageAction</a>;<br>
|
||||
<a href="/constructor/chatAdminRights">chatAdminRights</a>#5fb224d5 flags:<a href="/type/%23">#</a> change_info:flags.0?<a href="/constructor/true">true</a> post_messages:flags.1?<a href="/constructor/true">true</a> edit_messages:flags.2?<a href="/constructor/true">true</a> delete_messages:flags.3?<a href="/constructor/true">true</a> ban_users:flags.4?<a href="/constructor/true">true</a> invite_users:flags.5?<a href="/constructor/true">true</a> pin_messages:flags.7?<a href="/constructor/true">true</a> add_admins:flags.9?<a href="/constructor/true">true</a> anonymous:flags.10?<a href="/constructor/true">true</a> manage_call:flags.11?<a href="/constructor/true">true</a> other:flags.12?<a href="/constructor/true">true</a> manage_topics:flags.13?<a href="/constructor/true">true</a> post_stories:flags.14?<a href="/constructor/true">true</a> edit_stories:flags.15?<a href="/constructor/true">true</a> delete_stories:flags.16?<a href="/constructor/true">true</a> = <a href="/type/ChatAdminRights">ChatAdminRights</a>;<br>
|
||||
<a href="/constructor/autoDownloadSettings">autoDownloadSettings</a>#baa57628 flags:<a href="/type/%23">#</a> disabled:flags.0?<a href="/constructor/true">true</a> video_preload_large:flags.1?<a href="/constructor/true">true</a> audio_preload_next:flags.2?<a href="/constructor/true">true</a> phonecalls_less_data:flags.3?<a href="/constructor/true">true</a> stories_preload:flags.4?<a href="/constructor/true">true</a> photo_size_max:<a href="/type/int">int</a> video_size_max:<a href="/type/long">long</a> file_size_max:<a href="/type/long">long</a> video_upload_maxbitrate:<a href="/type/int">int</a> small_queue_active_operations_max:<a href="/type/int">int</a> large_queue_active_operations_max:<a href="/type/int">int</a> = <a href="/type/AutoDownloadSettings">AutoDownloadSettings</a>;<br>
|
||||
<a href="/constructor/globalPrivacySettings">globalPrivacySettings</a>#734c4ccb flags:<a href="/type/%23">#</a> archive_and_mute_new_noncontact_peers:flags.0?<a href="/constructor/true">true</a> keep_archived_unmuted:flags.1?<a href="/constructor/true">true</a> keep_archived_folders:flags.2?<a href="/constructor/true">true</a> = <a href="/type/GlobalPrivacySettings">GlobalPrivacySettings</a>;<br>
|
||||
<a href="/constructor/updatePeerBlocked">updatePeerBlocked</a>#ebe07752 flags:<a href="/type/%23">#</a> blocked:flags.0?<a href="/constructor/true">true</a> blocked_my_stories_from:flags.1?<a href="/constructor/true">true</a> peer_id:<a href="/type/Peer">Peer</a> = <a href="/type/Update">Update</a>;<br>
|
||||
<a href="/constructor/attachMenuBot">attachMenuBot</a>#d90d8dfe flags:<a href="/type/%23">#</a> inactive:flags.0?<a href="/constructor/true">true</a> has_settings:flags.1?<a href="/constructor/true">true</a> request_write_access:flags.2?<a href="/constructor/true">true</a> show_in_attach_menu:flags.3?<a href="/constructor/true">true</a> show_in_side_menu:flags.4?<a href="/constructor/true">true</a> side_menu_disclaimer_needed:flags.5?<a href="/constructor/true">true</a> bot_id:<a href="/type/long">long</a> short_name:<a href="/type/string">string</a> peer_types:flags.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/AttachMenuPeerType">AttachMenuPeerType</a>> icons:<a href="/type/Vector%20t">Vector</a><<a href="/type/AttachMenuBotIcon">AttachMenuBotIcon</a>> = <a href="/type/AttachMenuBot">AttachMenuBot</a>;<br>
|
||||
<a href="/constructor/messages.botApp">messages.botApp</a>#eb50adf5 flags:<a href="/type/%23">#</a> inactive:flags.0?<a href="/constructor/true">true</a> request_write_access:flags.1?<a href="/constructor/true">true</a> has_settings:flags.2?<a href="/constructor/true">true</a> app:<a href="/type/BotApp">BotApp</a> = <a href="/type/messages.BotApp">messages.BotApp</a>;<br>
|
||||
<a href="/constructor/storyViews">storyViews</a>#8d595cd6 flags:<a href="/type/%23">#</a> has_viewers:flags.1?<a href="/constructor/true">true</a> views_count:<a href="/type/int">int</a> forwards_count:flags.2?<a href="/type/int">int</a> reactions:flags.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/ReactionCount">ReactionCount</a>> reactions_count:flags.4?<a href="/type/int">int</a> recent_viewers:flags.0?<a href="/type/Vector%20t">Vector</a><<a href="/type/long">long</a>> = <a href="/type/StoryViews">StoryViews</a>;
|
||||
<a href="/constructor/storyItemDeleted">storyItemDeleted</a>#51e6ee4f id:<a href="/type/int">int</a> = <a href="/type/StoryItem">StoryItem</a>;
|
||||
<a href="/constructor/storyItemSkipped">storyItemSkipped</a>#ffadc913 flags:<a href="/type/%23">#</a> close_friends:flags.8?<a href="/constructor/true">true</a> id:<a href="/type/int">int</a> date:<a href="/type/int">int</a> expire_date:<a href="/type/int">int</a> = <a href="/type/StoryItem">StoryItem</a>;
|
||||
<a href="/constructor/storyItem">storyItem</a>#44c457ce flags:<a href="/type/%23">#</a> pinned:flags.5?<a href="/constructor/true">true</a> public:flags.7?<a href="/constructor/true">true</a> close_friends:flags.8?<a href="/constructor/true">true</a> min:flags.9?<a href="/constructor/true">true</a> noforwards:flags.10?<a href="/constructor/true">true</a> edited:flags.11?<a href="/constructor/true">true</a> contacts:flags.12?<a href="/constructor/true">true</a> selected_contacts:flags.13?<a href="/constructor/true">true</a> out:flags.16?<a href="/constructor/true">true</a> id:<a href="/type/int">int</a> date:<a href="/type/int">int</a> expire_date:<a href="/type/int">int</a> caption:flags.0?<a href="/type/string">string</a> entities:flags.1?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> media:<a href="/type/MessageMedia">MessageMedia</a> media_areas:flags.14?<a href="/type/Vector%20t">Vector</a><<a href="/type/MediaArea">MediaArea</a>> privacy:flags.2?<a href="/type/Vector%20t">Vector</a><<a href="/type/PrivacyRule">PrivacyRule</a>> views:flags.3?<a href="/type/StoryViews">StoryViews</a> sent_reaction:flags.15?<a href="/type/Reaction">Reaction</a> = <a href="/type/StoryItem">StoryItem</a>;<br>
|
||||
<a href="/constructor/updateStory">updateStory</a>#75b3b798 peer:<a href="/type/Peer">Peer</a> story:<a href="/type/StoryItem">StoryItem</a> = <a href="/type/Update">Update</a>;
|
||||
<a href="/constructor/updateReadStories">updateReadStories</a>#f74e932b peer:<a href="/type/Peer">Peer</a> max_id:<a href="/type/int">int</a> = <a href="/type/Update">Update</a>;<br>
|
||||
<a href="/constructor/stories.allStoriesNotModified">stories.allStoriesNotModified</a>#1158fe3e flags:<a href="/type/%23">#</a> state:<a href="/type/string">string</a> stealth_mode:<a href="/type/StoriesStealthMode">StoriesStealthMode</a> = <a href="/type/stories.AllStories">stories.AllStories</a>;
|
||||
<a href="/constructor/stories.allStories">stories.allStories</a>#6efc5e81 flags:<a href="/type/%23">#</a> has_more:flags.0?<a href="/constructor/true">true</a> count:<a href="/type/int">int</a> state:<a href="/type/string">string</a> peer_stories:<a href="/type/Vector%20t">Vector</a><<a href="/type/PeerStories">PeerStories</a>> chats:<a href="/type/Vector%20t">Vector</a><<a href="/type/Chat">Chat</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> stealth_mode:<a href="/type/StoriesStealthMode">StoriesStealthMode</a> = <a href="/type/stories.AllStories">stories.AllStories</a>;
|
||||
<a href="/constructor/stories.stories">stories.stories</a>#5dd8c3c8 count:<a href="/type/int">int</a> stories:<a href="/type/Vector%20t">Vector</a><<a href="/type/StoryItem">StoryItem</a>> chats:<a href="/type/Vector%20t">Vector</a><<a href="/type/Chat">Chat</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/stories.Stories">stories.Stories</a>;
|
||||
<a href="/constructor/stories.stories">stories.stories</a>#5dd8c3c8 count:<a href="/type/int">int</a> stories:<a href="/type/Vector%20t">Vector</a><<a href="/type/StoryItem">StoryItem</a>> chats:<a href="/type/Vector%20t">Vector</a><<a href="/type/Chat">Chat</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/stories.Stories">stories.Stories</a>;<br>
|
||||
<a href="/constructor/inputPrivacyValueAllowCloseFriends">inputPrivacyValueAllowCloseFriends</a>#2f453e49 = <a href="/type/InputPrivacyRule">InputPrivacyRule</a>;<br>
|
||||
<a href="/constructor/privacyValueAllowCloseFriends">privacyValueAllowCloseFriends</a>#f7e8d89b = <a href="/type/PrivacyRule">PrivacyRule</a>;<br>
|
||||
<a href="/constructor/storyView">storyView</a>#b0bdeac5 flags:<a href="/type/%23">#</a> blocked:flags.0?<a href="/constructor/true">true</a> blocked_my_stories_from:flags.1?<a href="/constructor/true">true</a> user_id:<a href="/type/long">long</a> date:<a href="/type/int">int</a> reaction:flags.2?<a href="/type/Reaction">Reaction</a> = <a href="/type/StoryView">StoryView</a>;
|
||||
<a href="/constructor/stories.storyViewsList">stories.storyViewsList</a>#46e9b9ec flags:<a href="/type/%23">#</a> count:<a href="/type/int">int</a> reactions_count:<a href="/type/int">int</a> views:<a href="/type/Vector%20t">Vector</a><<a href="/type/StoryView">StoryView</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> next_offset:flags.0?<a href="/type/string">string</a> = <a href="/type/stories.StoryViewsList">stories.StoryViewsList</a>;<br>
|
||||
<a href="/constructor/stories.storyViewsList">stories.storyViewsList</a>#46e9b9ec flags:<a href="/type/%23">#</a> count:<a href="/type/int">int</a> reactions_count:<a href="/type/int">int</a> views:<a href="/type/Vector%20t">Vector</a><<a href="/type/StoryView">StoryView</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> next_offset:flags.0?<a href="/type/string">string</a> = <a href="/type/stories.StoryViewsList">stories.StoryViewsList</a>;
|
||||
<a href="/constructor/stories.storyViews">stories.storyViews</a>#de9eed1d views:<a href="/type/Vector%20t">Vector</a><<a href="/type/StoryViews">StoryViews</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/stories.StoryViews">stories.StoryViews</a>;<br>
|
||||
<a href="/constructor/inputReplyToMessage">inputReplyToMessage</a>#9c5386e4 flags:<a href="/type/%23">#</a> reply_to_msg_id:<a href="/type/int">int</a> top_msg_id:flags.0?<a href="/type/int">int</a> = <a href="/type/InputReplyTo">InputReplyTo</a>;
|
||||
<a href="/constructor/inputReplyToStory">inputReplyToStory</a>#15b0f283 user_id:<a href="/type/InputUser">InputUser</a> story_id:<a href="/type/int">int</a> = <a href="/type/InputReplyTo">InputReplyTo</a>;<br>
|
||||
<a href="/constructor/messageReplyStoryHeader">messageReplyStoryHeader</a>#9c98bfc1 user_id:<a href="/type/long">long</a> story_id:<a href="/type/int">int</a> = <a href="/type/MessageReplyHeader">MessageReplyHeader</a>;<br>
|
||||
<a href="/constructor/updateStoryID">updateStoryID</a>#1bf335b9 id:<a href="/type/int">int</a> random_id:<a href="/type/long">long</a> = <a href="/type/Update">Update</a>;<br>
|
||||
<a href="/constructor/exportedStoryLink">exportedStoryLink</a>#3fc9053b link:<a href="/type/string">string</a> = <a href="/type/ExportedStoryLink">ExportedStoryLink</a>;<br>
|
||||
<a href="/constructor/inputMediaStory">inputMediaStory</a>#89fdd778 peer:<a href="/type/InputPeer">InputPeer</a> id:<a href="/type/int">int</a> = <a href="/type/InputMedia">InputMedia</a>;<br>
|
||||
<a href="/constructor/messageMediaStory">messageMediaStory</a>#68cb6283 flags:<a href="/type/%23">#</a> via_mention:flags.1?<a href="/constructor/true">true</a> peer:<a href="/type/Peer">Peer</a> id:<a href="/type/int">int</a> story:flags.0?<a href="/type/StoryItem">StoryItem</a> = <a href="/type/MessageMedia">MessageMedia</a>;<br>
|
||||
<a href="/constructor/webPageAttributeStory">webPageAttributeStory</a>#2e94c3e7 flags:<a href="/type/%23">#</a> peer:<a href="/type/Peer">Peer</a> id:<a href="/type/int">int</a> story:flags.0?<a href="/type/StoryItem">StoryItem</a> = <a href="/type/WebPageAttribute">WebPageAttribute</a>;<br>
|
||||
|
@ -518,16 +557,27 @@
|
|||
<a href="/method/contacts.block">contacts.block</a>#2e2e8734 flags:<a href="/type/%23">#</a> my_stories_from:flags.0?<a href="/constructor/true">true</a> id:<a href="/type/InputPeer">InputPeer</a> = <a href="/type/Bool">Bool</a>;
|
||||
<a href="/method/contacts.unblock">contacts.unblock</a>#b550d328 flags:<a href="/type/%23">#</a> my_stories_from:flags.0?<a href="/constructor/true">true</a> id:<a href="/type/InputPeer">InputPeer</a> = <a href="/type/Bool">Bool</a>;
|
||||
<a href="/method/contacts.getBlocked">contacts.getBlocked</a>#9a868f80 flags:<a href="/type/%23">#</a> my_stories_from:flags.0?<a href="/constructor/true">true</a> offset:<a href="/type/int">int</a> limit:<a href="/type/int">int</a> = <a href="/type/contacts.Blocked">contacts.Blocked</a>;<br>
|
||||
<a href="/method/messages.sendMessage">messages.sendMessage</a>#280d096f flags:<a href="/type/%23">#</a> no_webpage:flags.1?<a href="/constructor/true">true</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> clear_draft:flags.7?<a href="/constructor/true">true</a> noforwards:flags.14?<a href="/constructor/true">true</a> update_stickersets_order:flags.15?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> message:<a href="/type/string">string</a> random_id:<a href="/type/long">long</a> reply_markup:flags.2?<a href="/type/ReplyMarkup">ReplyMarkup</a> entities:flags.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> = <a href="/type/Updates">Updates</a>;
|
||||
<a href="/method/messages.sendMedia">messages.sendMedia</a>#72ccc23d flags:<a href="/type/%23">#</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> clear_draft:flags.7?<a href="/constructor/true">true</a> noforwards:flags.14?<a href="/constructor/true">true</a> update_stickersets_order:flags.15?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> media:<a href="/type/InputMedia">InputMedia</a> message:<a href="/type/string">string</a> random_id:<a href="/type/long">long</a> reply_markup:flags.2?<a href="/type/ReplyMarkup">ReplyMarkup</a> entities:flags.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> = <a href="/type/Updates">Updates</a>;
|
||||
<a href="/method/messages.sendInlineBotResult">messages.sendInlineBotResult</a>#f7bc68ba flags:<a href="/type/%23">#</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> clear_draft:flags.7?<a href="/constructor/true">true</a> hide_via:flags.11?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> random_id:<a href="/type/long">long</a> query_id:<a href="/type/long">long</a> id:<a href="/type/string">string</a> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> = <a href="/type/Updates">Updates</a>;
|
||||
<a href="/method/messages.sendScreenshotNotification">messages.sendScreenshotNotification</a>#a1405817 peer:<a href="/type/InputPeer">InputPeer</a> reply_to:<a href="/type/InputReplyTo">InputReplyTo</a> random_id:<a href="/type/long">long</a> = <a href="/type/Updates">Updates</a>;
|
||||
<a href="/method/messages.sendMultiMedia">messages.sendMultiMedia</a>#456e8987 flags:<a href="/type/%23">#</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> clear_draft:flags.7?<a href="/constructor/true">true</a> noforwards:flags.14?<a href="/constructor/true">true</a> update_stickersets_order:flags.15?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> multi_media:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputSingleMedia">InputSingleMedia</a>> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> = <a href="/type/Updates">Updates</a>;<br>
|
||||
<a href="/method/account.getNotifyExceptions">account.getNotifyExceptions</a>#53577479 flags:<a href="/type/%23">#</a> compare_sound:flags.1?<a href="/constructor/true">true</a> compare_stories:flags.2?<a href="/constructor/true">true</a> peer:flags.0?<a href="/type/InputNotifyPeer">InputNotifyPeer</a> = <a href="/type/Updates">Updates</a>;
|
||||
<a href="/method/account.changeAuthorizationSettings">account.changeAuthorizationSettings</a>#40f48462 flags:<a href="/type/%23">#</a> confirmed:flags.3?<a href="/constructor/true">true</a> hash:<a href="/type/long">long</a> encrypted_requests_disabled:flags.0?<a href="/type/Bool">Bool</a> call_requests_disabled:flags.1?<a href="/type/Bool">Bool</a> = <a href="/type/Bool">Bool</a>;<br>
|
||||
<a href="/method/messages.requestWebView">messages.requestWebView</a>#269dc2c1 flags:<a href="/type/%23">#</a> from_bot_menu:flags.4?<a href="/constructor/true">true</a> silent:flags.5?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> bot:<a href="/type/InputUser">InputUser</a> url:flags.1?<a href="/type/string">string</a> start_param:flags.3?<a href="/type/string">string</a> theme_params:flags.2?<a href="/type/DataJSON">DataJSON</a> platform:<a href="/type/string">string</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> = <a href="/type/WebViewResult">WebViewResult</a>;
|
||||
<a href="/method/messages.prolongWebView">messages.prolongWebView</a>#b0d81a83 flags:<a href="/type/%23">#</a> silent:flags.5?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> bot:<a href="/type/InputUser">InputUser</a> query_id:<a href="/type/long">long</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> = <a href="/type/Bool">Bool</a>;
|
||||
<a href="/method/messages.requestSimpleWebView">messages.requestSimpleWebView</a>#1a46500a flags:<a href="/type/%23">#</a> from_switch_webview:flags.1?<a href="/constructor/true">true</a> from_side_menu:flags.2?<a href="/constructor/true">true</a> bot:<a href="/type/InputUser">InputUser</a> url:flags.3?<a href="/type/string">string</a> start_param:flags.4?<a href="/type/string">string</a> theme_params:flags.0?<a href="/type/DataJSON">DataJSON</a> platform:<a href="/type/string">string</a> = <a href="/type/SimpleWebViewResult">SimpleWebViewResult</a>;<br>
|
||||
<a href="/method/contacts.editCloseFriends">contacts.editCloseFriends</a>#ba6705f0 id:<a href="/type/Vector%20t">Vector</a><<a href="/type/long">long</a>> = <a href="/type/Bool">Bool</a>;<br>
|
||||
<a href="/method/stories.canSendStory">stories.canSendStory</a>#c7dfdfdd peer:<a href="/type/InputPeer">InputPeer</a> = <a href="/type/Bool">Bool</a>;
|
||||
<a href="/method/stories.sendStory">stories.sendStory</a>#bcb73644 flags:<a href="/type/%23">#</a> pinned:flags.2?<a href="/constructor/true">true</a> noforwards:flags.4?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> media:<a href="/type/InputMedia">InputMedia</a> media_areas:flags.5?<a href="/type/Vector%20t">Vector</a><<a href="/type/MediaArea">MediaArea</a>> caption:flags.0?<a href="/type/string">string</a> entities:flags.1?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> privacy_rules:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputPrivacyRule">InputPrivacyRule</a>> random_id:<a href="/type/long">long</a> period:flags.3?<a href="/type/int">int</a> = <a href="/type/Updates">Updates</a>;
|
||||
<a href="/method/stories.editStory">stories.editStory</a>#b583ba46 flags:<a href="/type/%23">#</a> peer:<a href="/type/InputPeer">InputPeer</a> id:<a href="/type/int">int</a> media:flags.0?<a href="/type/InputMedia">InputMedia</a> media_areas:flags.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/MediaArea">MediaArea</a>> caption:flags.1?<a href="/type/string">string</a> entities:flags.1?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> privacy_rules:flags.2?<a href="/type/Vector%20t">Vector</a><<a href="/type/InputPrivacyRule">InputPrivacyRule</a>> = <a href="/type/Updates">Updates</a>;
|
||||
<a href="/method/stories.deleteStories">stories.deleteStories</a>#ae59db5f peer:<a href="/type/InputPeer">InputPeer</a> id:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> = <a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>>;
|
||||
<a href="/method/stories.togglePinned">stories.togglePinned</a>#9a75a1ef peer:<a href="/type/InputPeer">InputPeer</a> id:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> pinned:<a href="/type/Bool">Bool</a> = <a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>>;
|
||||
<a href="/method/stories.getAllStories">stories.getAllStories</a>#eeb0d625 flags:<a href="/type/%23">#</a> next:flags.1?<a href="/constructor/true">true</a> hidden:flags.2?<a href="/constructor/true">true</a> state:flags.0?<a href="/type/string">string</a> = <a href="/type/stories.AllStories">stories.AllStories</a>;
|
||||
<a href="/method/stories.getPinnedStories">stories.getPinnedStories</a>#5821a5dc peer:<a href="/type/InputPeer">InputPeer</a> offset_id:<a href="/type/int">int</a> limit:<a href="/type/int">int</a> = <a href="/type/stories.Stories">stories.Stories</a>;
|
||||
<a href="/method/stories.getStoriesArchive">stories.getStoriesArchive</a>#b4352016 peer:<a href="/type/InputPeer">InputPeer</a> offset_id:<a href="/type/int">int</a> limit:<a href="/type/int">int</a> = <a href="/type/stories.Stories">stories.Stories</a>;
|
||||
<a href="/method/stories.getStoriesByID">stories.getStoriesByID</a>#5774ca74 peer:<a href="/type/InputPeer">InputPeer</a> id:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> = <a href="/type/stories.Stories">stories.Stories</a>;
|
||||
<a href="/method/stories.toggleAllStoriesHidden">stories.toggleAllStoriesHidden</a>#7c2557c4 hidden:<a href="/type/Bool">Bool</a> = <a href="/type/Bool">Bool</a>;
|
||||
<a href="/method/stories.readStories">stories.readStories</a>#a556dac8 peer:<a href="/type/InputPeer">InputPeer</a> max_id:<a href="/type/int">int</a> = <a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>>;
|
||||
<a href="/method/stories.incrementStoryViews">stories.incrementStoryViews</a>#b2028afb peer:<a href="/type/InputPeer">InputPeer</a> id:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> = <a href="/type/Bool">Bool</a>;
|
||||
<a href="/method/stories.getStoryViewsList">stories.getStoryViewsList</a>#7ed23c57 flags:<a href="/type/%23">#</a> just_contacts:flags.0?<a href="/constructor/true">true</a> reactions_first:flags.2?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> q:flags.1?<a href="/type/string">string</a> id:<a href="/type/int">int</a> offset:<a href="/type/string">string</a> limit:<a href="/type/int">int</a> = <a href="/type/stories.StoryViewsList">stories.StoryViewsList</a>;
|
||||
|
@ -549,150 +599,6 @@
|
|||
<a href="/method/stories.getBoostersList">stories.getBoostersList</a>#337ef980 peer:<a href="/type/InputPeer">InputPeer</a> offset:<a href="/type/string">string</a> limit:<a href="/type/int">int</a> = <a href="/type/stories.BoostersList">stories.BoostersList</a>;
|
||||
<a href="/method/stories.canApplyBoost">stories.canApplyBoost</a>#db05c1bd peer:<a href="/type/InputPeer">InputPeer</a> = <a href="/type/stories.CanApplyBoostResult">stories.CanApplyBoostResult</a>;
|
||||
<a href="/method/stories.applyBoost">stories.applyBoost</a>#f29d7c2b peer:<a href="/type/InputPeer">InputPeer</a> = <a href="/type/Bool">Bool</a>;<br></code></pre></div>
|
||||
<h3><a class="anchor" href="#layer-160" id="layer-160" name="layer-160"><i class="anchor-icon"></i></a><a href="/schema?layer=160">Layer 160</a></h3>
|
||||
<h4><a class="anchor" href="#schema-changes" id="schema-changes" name="schema-changes"><i class="anchor-icon"></i></a>Schema changes</h4>
|
||||
<h5><a class="anchor" href="#new-methods" id="new-methods" name="new-methods"><i class="anchor-icon"></i></a>New Methods</h5>
|
||||
<ul>
|
||||
<li>Added <a href="/method/contacts.editCloseFriends">contacts.editCloseFriends</a> - Edit the <a href="/api/privacy">close friends list, see here »</a> for more info.</li>
|
||||
<li>Added <a href="/method/contacts.toggleStoriesHidden">contacts.toggleStoriesHidden</a></li>
|
||||
<li>Added <a href="/method/stories.canSendStory">stories.canSendStory</a> - Check whether we can post stories as the specified peer.</li>
|
||||
<li>Added <a href="/method/stories.sendStory">stories.sendStory</a> - Uploads a <a href="/api/stories">Telegram Story</a>.</li>
|
||||
<li>Added <a href="/method/stories.editStory">stories.editStory</a> - Edit an uploaded <a href="/api/stories">story</a></li>
|
||||
<li>Added <a href="/method/stories.deleteStories">stories.deleteStories</a> - Deletes some posted <a href="/api/stories">stories</a>.</li>
|
||||
<li>Added <a href="/method/stories.togglePinned">stories.togglePinned</a> - Pin or unpin one or more stories</li>
|
||||
<li>Added <a href="/method/stories.getAllStories">stories.getAllStories</a> - Fetch the List of active (or active and hidden) stories, see <a href="/api/stories#watching-stories">here »</a> for more info on watching stories.</li>
|
||||
<li>Added <a href="/method/stories.getUserStories">stories.getUserStories</a></li>
|
||||
<li>Added <a href="/method/stories.getPinnedStories">stories.getPinnedStories</a> - Fetch the <a href="/api/stories#pinned-or-archived-stories">stories</a> pinned on a peer's profile.</li>
|
||||
<li>Added <a href="/method/stories.getStoriesArchive">stories.getStoriesArchive</a> - Fetch the <a href="/api/stories#pinned-or-archived-stories">story archive »</a> of a peer we control.</li>
|
||||
<li>Added <a href="/method/stories.getStoriesByID">stories.getStoriesByID</a> - Obtain full info about a set of <a href="/api/stories">stories</a> by their IDs.</li>
|
||||
<li>Added <a href="/method/stories.toggleAllStoriesHidden">stories.toggleAllStoriesHidden</a> - Hide the active stories of a specific peer, preventing them from being displayed on the action bar on the homescreen.</li>
|
||||
<li>Added <a href="/method/stories.getAllReadUserStories">stories.getAllReadUserStories</a></li>
|
||||
<li>Added <a href="/method/stories.readStories">stories.readStories</a> - Mark all stories up to a certain ID as read, for a given peer; will emit an <a href="/constructor/updateReadStories">updateReadStories</a> update to all logged-in sessions.</li>
|
||||
<li>Added <a href="/method/stories.incrementStoryViews">stories.incrementStoryViews</a> - Increment the view counter of one or more stories.</li>
|
||||
<li>Added <a href="/method/stories.getStoryViewsList">stories.getStoryViewsList</a> - Obtain the list of users that have viewed a specific <a href="/api/stories">story we posted</a></li>
|
||||
<li>Added <a href="/method/stories.getStoriesViews">stories.getStoriesViews</a> - Obtain info about the view count, forward count, reactions and recent viewers of one or more <a href="/api/stories">stories</a>.</li>
|
||||
<li>Added <a href="/method/stories.exportStoryLink">stories.exportStoryLink</a> - Generate a <a href="/api/links#story-links">story deep link</a> for a specific story</li>
|
||||
<li>Added <a href="/method/stories.report">stories.report</a> - Report a story.</li>
|
||||
<li>Added <a href="/method/users.getStoriesMaxIDs">users.getStoriesMaxIDs</a></li>
|
||||
</ul>
|
||||
<h5><a class="anchor" href="#changed-methods" id="changed-methods" name="changed-methods"><i class="anchor-icon"></i></a>Changed Methods</h5>
|
||||
<ul>
|
||||
<li>Added <strong>reply_to</strong> parameter, removed <strong>reply_to_msg_id</strong>, <strong>top_msg_id</strong> parameters in <a href="/method/messages.sendMessage">messages.sendMessage</a></li>
|
||||
<li>Added <strong>reply_to</strong> parameter, removed <strong>reply_to_msg_id</strong>, <strong>top_msg_id</strong> parameters in <a href="/method/messages.sendMedia">messages.sendMedia</a></li>
|
||||
<li>Added <strong>reply_to</strong> parameter, removed <strong>reply_to_msg_id</strong>, <strong>top_msg_id</strong> parameters in <a href="/method/messages.sendInlineBotResult">messages.sendInlineBotResult</a></li>
|
||||
<li>Added <strong>reply_to</strong> parameter, removed <strong>reply_to_msg_id</strong> parameter in <a href="/method/messages.sendScreenshotNotification">messages.sendScreenshotNotification</a></li>
|
||||
<li>Added <strong>reply_to</strong> parameter, removed <strong>reply_to_msg_id</strong>, <strong>top_msg_id</strong> parameters in <a href="/method/messages.sendMultiMedia">messages.sendMultiMedia</a></li>
|
||||
<li>Added <strong>compare_stories</strong> parameter in <a href="/method/account.getNotifyExceptions">account.getNotifyExceptions</a></li>
|
||||
<li>Added <strong>reply_to</strong> parameter, removed <strong>reply_to_msg_id</strong>, <strong>top_msg_id</strong> parameters in <a href="/method/messages.requestWebView">messages.requestWebView</a></li>
|
||||
<li>Added <strong>reply_to</strong> parameter, removed <strong>reply_to_msg_id</strong>, <strong>top_msg_id</strong> parameters in <a href="/method/messages.prolongWebView">messages.prolongWebView</a></li>
|
||||
</ul>
|
||||
<h5><a class="anchor" href="#new-constructors" id="new-constructors" name="new-constructors"><i class="anchor-icon"></i></a>New Constructors</h5>
|
||||
<ul>
|
||||
<li>Added <a href="/constructor/storyViews">storyViews</a> - Aggregated view and reaction information of a <a href="/api/stories">story</a>.</li>
|
||||
<li>Added <a href="/constructor/storyItemDeleted">storyItemDeleted</a> - Represents a previously active story, that was deleted</li>
|
||||
<li>Added <a href="/constructor/storyItemSkipped">storyItemSkipped</a> - Represents an active story, whose full information was omitted for space and performance reasons; use <a href="/method/stories.getStoriesByID">stories.getStoriesByID</a> to fetch full info about the skipped story when and if needed.</li>
|
||||
<li>Added <a href="/constructor/storyItem">storyItem</a> - Represents a <a href="/api/stories">story</a>.</li>
|
||||
<li>Added <a href="/constructor/userStories">userStories</a></li>
|
||||
<li>Added <a href="/constructor/updateStory">updateStory</a> - A new story was posted.</li>
|
||||
<li>Added <a href="/constructor/updateReadStories">updateReadStories</a> - Stories of a specific peer were marked as read.</li>
|
||||
<li>Added <a href="/constructor/stories.allStoriesNotModified">stories.allStoriesNotModified</a> - The list of active (or active and hidden) <a href="/api/stories#watching-stories">stories</a> has not changed.</li>
|
||||
<li>Added <a href="/constructor/stories.allStories">stories.allStories</a> - Full list of active (or active and hidden) <a href="/api/stories#watching-stories">stories</a>.</li>
|
||||
<li>Added <a href="/constructor/stories.stories">stories.stories</a> - List of <a href="/api/stories#pinned-or-archived-stories">stories</a></li>
|
||||
<li>Added <a href="/constructor/stories.userStories">stories.userStories</a></li>
|
||||
<li>Added <a href="/constructor/inputPrivacyValueAllowCloseFriends">inputPrivacyValueAllowCloseFriends</a> - Allow only <a href="/api/privacy">close friends »</a></li>
|
||||
<li>Added <a href="/constructor/privacyValueAllowCloseFriends">privacyValueAllowCloseFriends</a> - Allow only <a href="/api/privacy">close friends »</a></li>
|
||||
<li>Added <a href="/constructor/storyView">storyView</a> - <a href="/api/stories">Story</a> view date and reaction information</li>
|
||||
<li>Added <a href="/constructor/stories.storyViewsList">stories.storyViewsList</a> - Reaction and view counters for a <a href="/api/stories">story</a></li>
|
||||
<li>Added <a href="/constructor/stories.storyViews">stories.storyViews</a> - Reaction and view counters for a list of <a href="/api/stories">stories</a></li>
|
||||
<li>Added <a href="/constructor/inputReplyToMessage">inputReplyToMessage</a> - Reply to a message.</li>
|
||||
<li>Added <a href="/constructor/inputReplyToStory">inputReplyToStory</a> - Reply to a story.</li>
|
||||
<li>Added <a href="/constructor/messageReplyStoryHeader">messageReplyStoryHeader</a> - Represents a reply to a <a href="/api/stories">story</a></li>
|
||||
<li>Added <a href="/constructor/updateStoryID">updateStoryID</a> - A story was successfully uploaded.</li>
|
||||
<li>Added <a href="/constructor/exportedStoryLink">exportedStoryLink</a> - Represents a <a href="/api/stories#story-links">story deep link</a>.</li>
|
||||
<li>Added <a href="/constructor/inputMediaStory">inputMediaStory</a> - Forwarded story</li>
|
||||
<li>Added <a href="/constructor/messageMediaStory">messageMediaStory</a> - Represents a forwarded <a href="/api/stories">story</a> or a story mention.</li>
|
||||
<li>Added <a href="/constructor/webPageAttributeStory">webPageAttributeStory</a> - Webpage preview of a Telegram story</li>
|
||||
</ul>
|
||||
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
||||
<ul>
|
||||
<li>Added <strong>view_forum_as_messages</strong> parameter in <a href="/constructor/dialog">dialog</a></li>
|
||||
<li>Added <strong>stories_muted</strong>, <strong>stories_hide_sender</strong>, <strong>stories_sound</strong> parameters in <a href="/constructor/inputPeerNotifySettings">inputPeerNotifySettings</a></li>
|
||||
<li>Added <strong>stories_muted</strong>, <strong>stories_hide_sender</strong>, <strong>stories_ios_sound</strong>, <strong>stories_android_sound</strong>, <strong>stories_other_sound</strong> parameters in <a href="/constructor/peerNotifySettings">peerNotifySettings</a></li>
|
||||
<li>Added <strong>stories_pinned_available</strong>, <strong>stories</strong> parameters in <a href="/constructor/userFull">userFull</a></li>
|
||||
<li>Added <strong>alt_document</strong> parameter in <a href="/constructor/messageMediaDocument">messageMediaDocument</a></li>
|
||||
<li>Added <strong>nosound</strong>, <strong>preload_prefix_size</strong> parameters, changed type of <strong>duration</strong> from <strong>int</strong> to <strong>double</strong> in <a href="/constructor/documentAttributeVideo">documentAttributeVideo</a></li>
|
||||
<li>Added <strong>close_friend</strong>, <strong>stories_hidden</strong>, <strong>stories_unavailable</strong>, <strong>stories_max_id</strong> parameters in <a href="/constructor/user">user</a></li>
|
||||
<li>Added <strong>stories_preload</strong> parameter in <a href="/constructor/autoDownloadSettings">autoDownloadSettings</a></li>
|
||||
<li>Added <strong>keep_archived_unmuted</strong>, <strong>keep_archived_folders</strong> parameters, changed type of <strong>archive_and_mute_new_noncontact_peers</strong> from <strong>flags.0?Bool</strong> to <strong>flags.0?true</strong> in <a href="/constructor/globalPrivacySettings">globalPrivacySettings</a></li>
|
||||
</ul>
|
||||
<h5><a class="anchor" href="#deleted-constructors" id="deleted-constructors" name="deleted-constructors"><i class="anchor-icon"></i></a>Deleted Constructors</h5>
|
||||
<ul>
|
||||
<li>Removed messageEntityBlockquote</li>
|
||||
</ul>
|
||||
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
||||
<div><pre><code><a href="/constructor/dialog">dialog</a>#d58a08c6 flags:<a href="/type/%23">#</a> pinned:flags.2?<a href="/constructor/true">true</a> unread_mark:flags.3?<a href="/constructor/true">true</a> view_forum_as_messages:flags.6?<a href="/constructor/true">true</a> peer:<a href="/type/Peer">Peer</a> top_message:<a href="/type/int">int</a> read_inbox_max_id:<a href="/type/int">int</a> read_outbox_max_id:<a href="/type/int">int</a> unread_count:<a href="/type/int">int</a> unread_mentions_count:<a href="/type/int">int</a> unread_reactions_count:<a href="/type/int">int</a> notify_settings:<a href="/type/PeerNotifySettings">PeerNotifySettings</a> pts:flags.0?<a href="/type/int">int</a> draft:flags.1?<a href="/type/DraftMessage">DraftMessage</a> folder_id:flags.4?<a href="/type/int">int</a> ttl_period:flags.5?<a href="/type/int">int</a> = <a href="/type/Dialog">Dialog</a>;<br>
|
||||
<a href="/constructor/inputPeerNotifySettings">inputPeerNotifySettings</a>#cacb6ae2 flags:<a href="/type/%23">#</a> show_previews:flags.0?<a href="/type/Bool">Bool</a> silent:flags.1?<a href="/type/Bool">Bool</a> mute_until:flags.2?<a href="/type/int">int</a> sound:flags.3?<a href="/type/NotificationSound">NotificationSound</a> stories_muted:flags.6?<a href="/type/Bool">Bool</a> stories_hide_sender:flags.7?<a href="/type/Bool">Bool</a> stories_sound:flags.8?<a href="/type/NotificationSound">NotificationSound</a> = <a href="/type/InputPeerNotifySettings">InputPeerNotifySettings</a>;<br>
|
||||
<a href="/constructor/peerNotifySettings">peerNotifySettings</a>#99622c0c flags:<a href="/type/%23">#</a> show_previews:flags.0?<a href="/type/Bool">Bool</a> silent:flags.1?<a href="/type/Bool">Bool</a> mute_until:flags.2?<a href="/type/int">int</a> ios_sound:flags.3?<a href="/type/NotificationSound">NotificationSound</a> android_sound:flags.4?<a href="/type/NotificationSound">NotificationSound</a> other_sound:flags.5?<a href="/type/NotificationSound">NotificationSound</a> stories_muted:flags.6?<a href="/type/Bool">Bool</a> stories_hide_sender:flags.7?<a href="/type/Bool">Bool</a> stories_ios_sound:flags.8?<a href="/type/NotificationSound">NotificationSound</a> stories_android_sound:flags.9?<a href="/type/NotificationSound">NotificationSound</a> stories_other_sound:flags.10?<a href="/type/NotificationSound">NotificationSound</a> = <a href="/type/PeerNotifySettings">PeerNotifySettings</a>;<br>
|
||||
<a href="/constructor/userFull">userFull</a>#4fe1cc86 flags:<a href="/type/%23">#</a> blocked:flags.0?<a href="/constructor/true">true</a> phone_calls_available:flags.4?<a href="/constructor/true">true</a> phone_calls_private:flags.5?<a href="/constructor/true">true</a> can_pin_message:flags.7?<a href="/constructor/true">true</a> has_scheduled:flags.12?<a href="/constructor/true">true</a> video_calls_available:flags.13?<a href="/constructor/true">true</a> voice_messages_forbidden:flags.20?<a href="/constructor/true">true</a> translations_disabled:flags.23?<a href="/constructor/true">true</a> stories_pinned_available:flags.26?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> about:flags.1?<a href="/type/string">string</a> settings:<a href="/type/PeerSettings">PeerSettings</a> personal_photo:flags.21?<a href="/type/Photo">Photo</a> profile_photo:flags.2?<a href="/type/Photo">Photo</a> fallback_photo:flags.22?<a href="/type/Photo">Photo</a> notify_settings:<a href="/type/PeerNotifySettings">PeerNotifySettings</a> bot_info:flags.3?<a href="/type/BotInfo">BotInfo</a> pinned_msg_id:flags.6?<a href="/type/int">int</a> common_chats_count:<a href="/type/int">int</a> folder_id:flags.11?<a href="/type/int">int</a> ttl_period:flags.14?<a href="/type/int">int</a> theme_emoticon:flags.15?<a href="/type/string">string</a> private_forward_name:flags.16?<a href="/type/string">string</a> bot_group_admin_rights:flags.17?<a href="/type/ChatAdminRights">ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href="/type/ChatAdminRights">ChatAdminRights</a> premium_gifts:flags.19?<a href="/type/Vector%20t">Vector</a><<a href="/type/PremiumGiftOption">PremiumGiftOption</a>> wallpaper:flags.24?<a href="/type/WallPaper">WallPaper</a> stories:flags.25?<a href="/type/UserStories">UserStories</a> = <a href="/type/UserFull">UserFull</a>;<br>
|
||||
<a href="/constructor/messageMediaDocument">messageMediaDocument</a>#4cf4d72d flags:<a href="/type/%23">#</a> nopremium:flags.3?<a href="/constructor/true">true</a> spoiler:flags.4?<a href="/constructor/true">true</a> document:flags.0?<a href="/type/Document">Document</a> alt_document:flags.5?<a href="/type/Document">Document</a> ttl_seconds:flags.2?<a href="/type/int">int</a> = <a href="/type/MessageMedia">MessageMedia</a>;<br>
|
||||
<a href="/constructor/documentAttributeVideo">documentAttributeVideo</a>#d38ff1c2 flags:<a href="/type/%23">#</a> round_message:flags.0?<a href="/constructor/true">true</a> supports_streaming:flags.1?<a href="/constructor/true">true</a> nosound:flags.3?<a href="/constructor/true">true</a> duration:<a href="/type/double">double</a> w:<a href="/type/int">int</a> h:<a href="/type/int">int</a> preload_prefix_size:flags.2?<a href="/type/int">int</a> = <a href="/type/DocumentAttribute">DocumentAttribute</a>;<br>
|
||||
<a href="/constructor/user">user</a>#abb5f120 flags:<a href="/type/%23">#</a> self:flags.10?<a href="/constructor/true">true</a> contact:flags.11?<a href="/constructor/true">true</a> mutual_contact:flags.12?<a href="/constructor/true">true</a> deleted:flags.13?<a href="/constructor/true">true</a> bot:flags.14?<a href="/constructor/true">true</a> bot_chat_history:flags.15?<a href="/constructor/true">true</a> bot_nochats:flags.16?<a href="/constructor/true">true</a> verified:flags.17?<a href="/constructor/true">true</a> restricted:flags.18?<a href="/constructor/true">true</a> min:flags.20?<a href="/constructor/true">true</a> bot_inline_geo:flags.21?<a href="/constructor/true">true</a> support:flags.23?<a href="/constructor/true">true</a> scam:flags.24?<a href="/constructor/true">true</a> apply_min_photo:flags.25?<a href="/constructor/true">true</a> fake:flags.26?<a href="/constructor/true">true</a> bot_attach_menu:flags.27?<a href="/constructor/true">true</a> premium:flags.28?<a href="/constructor/true">true</a> attach_menu_enabled:flags.29?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</a> bot_can_edit:flags2.1?<a href="/constructor/true">true</a> close_friend:flags2.2?<a href="/constructor/true">true</a> stories_hidden:flags2.3?<a href="/constructor/true">true</a> stories_unavailable:flags2.4?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> access_hash:flags.0?<a href="/type/long">long</a> first_name:flags.1?<a href="/type/string">string</a> last_name:flags.2?<a href="/type/string">string</a> username:flags.3?<a href="/type/string">string</a> phone:flags.4?<a href="/type/string">string</a> photo:flags.5?<a href="/type/UserProfilePhoto">UserProfilePhoto</a> status:flags.6?<a href="/type/UserStatus">UserStatus</a> bot_info_version:flags.14?<a href="/type/int">int</a> restriction_reason:flags.18?<a href="/type/Vector%20t">Vector</a><<a href="/type/RestrictionReason">RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href="/type/string">string</a> lang_code:flags.22?<a href="/type/string">string</a> emoji_status:flags.30?<a href="/type/EmojiStatus">EmojiStatus</a> usernames:flags2.0?<a href="/type/Vector%20t">Vector</a><<a href="/type/Username">Username</a>> stories_max_id:flags2.5?<a href="/type/int">int</a> = <a href="/type/User">User</a>;<br>
|
||||
<a href="/constructor/autoDownloadSettings">autoDownloadSettings</a>#baa57628 flags:<a href="/type/%23">#</a> disabled:flags.0?<a href="/constructor/true">true</a> video_preload_large:flags.1?<a href="/constructor/true">true</a> audio_preload_next:flags.2?<a href="/constructor/true">true</a> phonecalls_less_data:flags.3?<a href="/constructor/true">true</a> stories_preload:flags.4?<a href="/constructor/true">true</a> photo_size_max:<a href="/type/int">int</a> video_size_max:<a href="/type/long">long</a> file_size_max:<a href="/type/long">long</a> video_upload_maxbitrate:<a href="/type/int">int</a> small_queue_active_operations_max:<a href="/type/int">int</a> large_queue_active_operations_max:<a href="/type/int">int</a> = <a href="/type/AutoDownloadSettings">AutoDownloadSettings</a>;<br>
|
||||
<a href="/constructor/globalPrivacySettings">globalPrivacySettings</a>#734c4ccb flags:<a href="/type/%23">#</a> archive_and_mute_new_noncontact_peers:flags.0?<a href="/constructor/true">true</a> keep_archived_unmuted:flags.1?<a href="/constructor/true">true</a> keep_archived_folders:flags.2?<a href="/constructor/true">true</a> = <a href="/type/GlobalPrivacySettings">GlobalPrivacySettings</a>;<br>
|
||||
<a href="/constructor/storyViews">storyViews</a>#d36760cf flags:<a href="/type/%23">#</a> views_count:<a href="/type/int">int</a> recent_viewers:flags.0?<a href="/type/Vector%20t">Vector</a><<a href="/type/long">long</a>> = <a href="/type/StoryViews">StoryViews</a>;
|
||||
<a href="/constructor/storyItemDeleted">storyItemDeleted</a>#51e6ee4f id:<a href="/type/int">int</a> = <a href="/type/StoryItem">StoryItem</a>;
|
||||
<a href="/constructor/storyItemSkipped">storyItemSkipped</a>#ffadc913 flags:<a href="/type/%23">#</a> close_friends:flags.8?<a href="/constructor/true">true</a> id:<a href="/type/int">int</a> date:<a href="/type/int">int</a> expire_date:<a href="/type/int">int</a> = <a href="/type/StoryItem">StoryItem</a>;
|
||||
<a href="/constructor/storyItem">storyItem</a>#562aa637 flags:<a href="/type/%23">#</a> pinned:flags.5?<a href="/constructor/true">true</a> public:flags.7?<a href="/constructor/true">true</a> close_friends:flags.8?<a href="/constructor/true">true</a> min:flags.9?<a href="/constructor/true">true</a> noforwards:flags.10?<a href="/constructor/true">true</a> edited:flags.11?<a href="/constructor/true">true</a> contacts:flags.12?<a href="/constructor/true">true</a> selected_contacts:flags.13?<a href="/constructor/true">true</a> id:<a href="/type/int">int</a> date:<a href="/type/int">int</a> expire_date:<a href="/type/int">int</a> caption:flags.0?<a href="/type/string">string</a> entities:flags.1?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> media:<a href="/type/MessageMedia">MessageMedia</a> privacy:flags.2?<a href="/type/Vector%20t">Vector</a><<a href="/type/PrivacyRule">PrivacyRule</a>> views:flags.3?<a href="/type/StoryViews">StoryViews</a> = <a href="/type/StoryItem">StoryItem</a>;<br>
|
||||
<a href="/constructor/userStories">userStories</a>#8611a200 flags:<a href="/type/%23">#</a> user_id:<a href="/type/long">long</a> max_read_id:flags.0?<a href="/type/int">int</a> stories:<a href="/type/Vector%20t">Vector</a><<a href="/type/StoryItem">StoryItem</a>> = <a href="/type/UserStories">UserStories</a>;
|
||||
<a href="/constructor/updateStory">updateStory</a>#205a4133 user_id:<a href="/type/long">long</a> story:<a href="/type/StoryItem">StoryItem</a> = <a href="/type/Update">Update</a>;
|
||||
<a href="/constructor/updateReadStories">updateReadStories</a>#feb5345a user_id:<a href="/type/long">long</a> max_id:<a href="/type/int">int</a> = <a href="/type/Update">Update</a>;<br>
|
||||
<a href="/constructor/stories.allStoriesNotModified">stories.allStoriesNotModified</a>#47e0a07e state:<a href="/type/string">string</a> = <a href="/type/stories.AllStories">stories.AllStories</a>;
|
||||
<a href="/constructor/stories.allStories">stories.allStories</a>#839e0428 flags:<a href="/type/%23">#</a> has_more:flags.0?<a href="/constructor/true">true</a> count:<a href="/type/int">int</a> state:<a href="/type/string">string</a> user_stories:<a href="/type/Vector%20t">Vector</a><<a href="/type/UserStories">UserStories</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/stories.AllStories">stories.AllStories</a>;
|
||||
<a href="/constructor/stories.stories">stories.stories</a>#4fe57df1 count:<a href="/type/int">int</a> stories:<a href="/type/Vector%20t">Vector</a><<a href="/type/StoryItem">StoryItem</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/stories.Stories">stories.Stories</a>;
|
||||
<a href="/constructor/stories.userStories">stories.userStories</a>#37a6ff5f stories:<a href="/type/UserStories">UserStories</a> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/stories.UserStories">stories.UserStories</a>;<br>
|
||||
<a href="/constructor/inputPrivacyValueAllowCloseFriends">inputPrivacyValueAllowCloseFriends</a>#2f453e49 = <a href="/type/InputPrivacyRule">InputPrivacyRule</a>;<br>
|
||||
<a href="/constructor/privacyValueAllowCloseFriends">privacyValueAllowCloseFriends</a>#f7e8d89b = <a href="/type/PrivacyRule">PrivacyRule</a>;<br>
|
||||
<a href="/constructor/storyView">storyView</a>#a71aacc2 user_id:<a href="/type/long">long</a> date:<a href="/type/int">int</a> = <a href="/type/StoryView">StoryView</a>;
|
||||
<a href="/constructor/stories.storyViewsList">stories.storyViewsList</a>#fb3f77ac count:<a href="/type/int">int</a> views:<a href="/type/Vector%20t">Vector</a><<a href="/type/StoryView">StoryView</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/stories.StoryViewsList">stories.StoryViewsList</a>;
|
||||
<a href="/constructor/stories.storyViews">stories.storyViews</a>#de9eed1d views:<a href="/type/Vector%20t">Vector</a><<a href="/type/StoryViews">StoryViews</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/stories.StoryViews">stories.StoryViews</a>;<br>
|
||||
<a href="/constructor/inputReplyToMessage">inputReplyToMessage</a>#9c5386e4 flags:<a href="/type/%23">#</a> reply_to_msg_id:<a href="/type/int">int</a> top_msg_id:flags.0?<a href="/type/int">int</a> = <a href="/type/InputReplyTo">InputReplyTo</a>;
|
||||
<a href="/constructor/inputReplyToStory">inputReplyToStory</a>#15b0f283 user_id:<a href="/type/InputUser">InputUser</a> story_id:<a href="/type/int">int</a> = <a href="/type/InputReplyTo">InputReplyTo</a>;<br>
|
||||
<a href="/constructor/messageReplyStoryHeader">messageReplyStoryHeader</a>#9c98bfc1 user_id:<a href="/type/long">long</a> story_id:<a href="/type/int">int</a> = <a href="/type/MessageReplyHeader">MessageReplyHeader</a>;<br>
|
||||
<a href="/constructor/updateStoryID">updateStoryID</a>#1bf335b9 id:<a href="/type/int">int</a> random_id:<a href="/type/long">long</a> = <a href="/type/Update">Update</a>;<br>
|
||||
<a href="/constructor/exportedStoryLink">exportedStoryLink</a>#3fc9053b link:<a href="/type/string">string</a> = <a href="/type/ExportedStoryLink">ExportedStoryLink</a>;<br>
|
||||
<a href="/constructor/inputMediaStory">inputMediaStory</a>#9a86b58f user_id:<a href="/type/InputUser">InputUser</a> id:<a href="/type/int">int</a> = <a href="/type/InputMedia">InputMedia</a>;<br>
|
||||
<a href="/constructor/messageMediaStory">messageMediaStory</a>#cbb20d88 flags:<a href="/type/%23">#</a> via_mention:flags.1?<a href="/constructor/true">true</a> user_id:<a href="/type/long">long</a> id:<a href="/type/int">int</a> story:flags.0?<a href="/type/StoryItem">StoryItem</a> = <a href="/type/MessageMedia">MessageMedia</a>;<br>
|
||||
<a href="/constructor/webPageAttributeStory">webPageAttributeStory</a>#939a4671 flags:<a href="/type/%23">#</a> user_id:<a href="/type/long">long</a> id:<a href="/type/int">int</a> story:flags.0?<a href="/type/StoryItem">StoryItem</a> = <a href="/type/WebPageAttribute">WebPageAttribute</a>;<br>
|
||||
---functions---<br>
|
||||
<a href="/method/messages.sendMessage">messages.sendMessage</a>#280d096f flags:<a href="/type/%23">#</a> no_webpage:flags.1?<a href="/constructor/true">true</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> clear_draft:flags.7?<a href="/constructor/true">true</a> noforwards:flags.14?<a href="/constructor/true">true</a> update_stickersets_order:flags.15?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> message:<a href="/type/string">string</a> random_id:<a href="/type/long">long</a> reply_markup:flags.2?<a href="/type/ReplyMarkup">ReplyMarkup</a> entities:flags.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> = <a href="/type/Updates">Updates</a>;
|
||||
<a href="/method/messages.sendMedia">messages.sendMedia</a>#72ccc23d flags:<a href="/type/%23">#</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> clear_draft:flags.7?<a href="/constructor/true">true</a> noforwards:flags.14?<a href="/constructor/true">true</a> update_stickersets_order:flags.15?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> media:<a href="/type/InputMedia">InputMedia</a> message:<a href="/type/string">string</a> random_id:<a href="/type/long">long</a> reply_markup:flags.2?<a href="/type/ReplyMarkup">ReplyMarkup</a> entities:flags.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> = <a href="/type/Updates">Updates</a>;
|
||||
<a href="/method/messages.sendInlineBotResult">messages.sendInlineBotResult</a>#f7bc68ba flags:<a href="/type/%23">#</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> clear_draft:flags.7?<a href="/constructor/true">true</a> hide_via:flags.11?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> random_id:<a href="/type/long">long</a> query_id:<a href="/type/long">long</a> id:<a href="/type/string">string</a> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> = <a href="/type/Updates">Updates</a>;
|
||||
<a href="/method/messages.sendScreenshotNotification">messages.sendScreenshotNotification</a>#a1405817 peer:<a href="/type/InputPeer">InputPeer</a> reply_to:<a href="/type/InputReplyTo">InputReplyTo</a> random_id:<a href="/type/long">long</a> = <a href="/type/Updates">Updates</a>;
|
||||
<a href="/method/messages.sendMultiMedia">messages.sendMultiMedia</a>#456e8987 flags:<a href="/type/%23">#</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> clear_draft:flags.7?<a href="/constructor/true">true</a> noforwards:flags.14?<a href="/constructor/true">true</a> update_stickersets_order:flags.15?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> multi_media:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputSingleMedia">InputSingleMedia</a>> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> = <a href="/type/Updates">Updates</a>;<br>
|
||||
<a href="/method/account.getNotifyExceptions">account.getNotifyExceptions</a>#53577479 flags:<a href="/type/%23">#</a> compare_sound:flags.1?<a href="/constructor/true">true</a> compare_stories:flags.2?<a href="/constructor/true">true</a> peer:flags.0?<a href="/type/InputNotifyPeer">InputNotifyPeer</a> = <a href="/type/Updates">Updates</a>;<br>
|
||||
<a href="/method/messages.requestWebView">messages.requestWebView</a>#269dc2c1 flags:<a href="/type/%23">#</a> from_bot_menu:flags.4?<a href="/constructor/true">true</a> silent:flags.5?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> bot:<a href="/type/InputUser">InputUser</a> url:flags.1?<a href="/type/string">string</a> start_param:flags.3?<a href="/type/string">string</a> theme_params:flags.2?<a href="/type/DataJSON">DataJSON</a> platform:<a href="/type/string">string</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> = <a href="/type/WebViewResult">WebViewResult</a>;
|
||||
<a href="/method/messages.prolongWebView">messages.prolongWebView</a>#b0d81a83 flags:<a href="/type/%23">#</a> silent:flags.5?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> bot:<a href="/type/InputUser">InputUser</a> query_id:<a href="/type/long">long</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> = <a href="/type/Bool">Bool</a>;<br>
|
||||
<a href="/method/contacts.editCloseFriends">contacts.editCloseFriends</a>#ba6705f0 id:<a href="/type/Vector%20t">Vector</a><<a href="/type/long">long</a>> = <a href="/type/Bool">Bool</a>;
|
||||
<a href="/method/contacts.toggleStoriesHidden">contacts.toggleStoriesHidden</a>#753fb865 id:<a href="/type/InputUser">InputUser</a> hidden:<a href="/type/Bool">Bool</a> = <a href="/type/Bool">Bool</a>;<br>
|
||||
<a href="/method/stories.canSendStory">stories.canSendStory</a>#b100d45d = <a href="/type/Bool">Bool</a>;
|
||||
<a href="/method/stories.sendStory">stories.sendStory</a>#424cd47a flags:<a href="/type/%23">#</a> pinned:flags.2?<a href="/constructor/true">true</a> noforwards:flags.4?<a href="/constructor/true">true</a> media:<a href="/type/InputMedia">InputMedia</a> caption:flags.0?<a href="/type/string">string</a> entities:flags.1?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> privacy_rules:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputPrivacyRule">InputPrivacyRule</a>> random_id:<a href="/type/long">long</a> period:flags.3?<a href="/type/int">int</a> = <a href="/type/Updates">Updates</a>;
|
||||
<a href="/method/stories.editStory">stories.editStory</a>#2aae7a41 flags:<a href="/type/%23">#</a> id:<a href="/type/int">int</a> media:flags.0?<a href="/type/InputMedia">InputMedia</a> caption:flags.1?<a href="/type/string">string</a> entities:flags.1?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> privacy_rules:flags.2?<a href="/type/Vector%20t">Vector</a><<a href="/type/InputPrivacyRule">InputPrivacyRule</a>> = <a href="/type/Updates">Updates</a>;
|
||||
<a href="/method/stories.deleteStories">stories.deleteStories</a>#b5d501d7 id:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> = <a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>>;
|
||||
<a href="/method/stories.togglePinned">stories.togglePinned</a>#51602944 id:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> pinned:<a href="/type/Bool">Bool</a> = <a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>>;
|
||||
<a href="/method/stories.getAllStories">stories.getAllStories</a>#eeb0d625 flags:<a href="/type/%23">#</a> next:flags.1?<a href="/constructor/true">true</a> hidden:flags.2?<a href="/constructor/true">true</a> state:flags.0?<a href="/type/string">string</a> = <a href="/type/stories.AllStories">stories.AllStories</a>;
|
||||
<a href="/method/stories.getUserStories">stories.getUserStories</a>#96d528e0 user_id:<a href="/type/InputUser">InputUser</a> = <a href="/type/stories.UserStories">stories.UserStories</a>;
|
||||
<a href="/method/stories.getPinnedStories">stories.getPinnedStories</a>#0b471137 user_id:<a href="/type/InputUser">InputUser</a> offset_id:<a href="/type/int">int</a> limit:<a href="/type/int">int</a> = <a href="/type/stories.Stories">stories.Stories</a>;
|
||||
<a href="/method/stories.getStoriesArchive">stories.getStoriesArchive</a>#1f5bc5d2 offset_id:<a href="/type/int">int</a> limit:<a href="/type/int">int</a> = <a href="/type/stories.Stories">stories.Stories</a>;
|
||||
<a href="/method/stories.getStoriesByID">stories.getStoriesByID</a>#6a15cf46 user_id:<a href="/type/InputUser">InputUser</a> id:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> = <a href="/type/stories.Stories">stories.Stories</a>;
|
||||
<a href="/method/stories.toggleAllStoriesHidden">stories.toggleAllStoriesHidden</a>#7c2557c4 hidden:<a href="/type/Bool">Bool</a> = <a href="/type/Bool">Bool</a>;
|
||||
<a href="/method/stories.getAllReadUserStories">stories.getAllReadUserStories</a>#729c562c = <a href="/type/Updates">Updates</a>;
|
||||
<a href="/method/stories.readStories">stories.readStories</a>#edc5105b user_id:<a href="/type/InputUser">InputUser</a> max_id:<a href="/type/int">int</a> = <a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>>;
|
||||
<a href="/method/stories.incrementStoryViews">stories.incrementStoryViews</a>#22126127 user_id:<a href="/type/InputUser">InputUser</a> id:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> = <a href="/type/Bool">Bool</a>;
|
||||
<a href="/method/stories.getStoryViewsList">stories.getStoryViewsList</a>#4b3b5e97 id:<a href="/type/int">int</a> offset_date:<a href="/type/int">int</a> offset_id:<a href="/type/long">long</a> limit:<a href="/type/int">int</a> = <a href="/type/stories.StoryViewsList">stories.StoryViewsList</a>;
|
||||
<a href="/method/stories.getStoriesViews">stories.getStoriesViews</a>#9a75d6a6 id:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> = <a href="/type/stories.StoryViews">stories.StoryViews</a>;
|
||||
<a href="/method/stories.exportStoryLink">stories.exportStoryLink</a>#16e443ce user_id:<a href="/type/InputUser">InputUser</a> id:<a href="/type/int">int</a> = <a href="/type/ExportedStoryLink">ExportedStoryLink</a>;
|
||||
<a href="/method/stories.report">stories.report</a>#c95be06a user_id:<a href="/type/InputUser">InputUser</a> id:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> reason:<a href="/type/ReportReason">ReportReason</a> message:<a href="/type/string">string</a> = <a href="/type/Bool">Bool</a>;<br>
|
||||
<a href="/method/users.getStoriesMaxIDs">users.getStoriesMaxIDs</a>#ca1cb9ab id:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputUser">InputUser</a>> = <a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>>;<br></code></pre></div>
|
||||
<h3><a class="anchor" href="#layer-159" id="layer-159" name="layer-159"><i class="anchor-icon"></i></a><a href="/schema?layer=159">Layer 159</a></h3>
|
||||
<p>Introducing privacy settings for user bios, <a href="/api/auth#invalidating-login-codes">improved login code invalidation</a>, improved chat invites, improved <a href="/api/updates">update handling</a>, <a href="/api/sponsored-messages">sponsored websites</a> and <a href="/api/sponsored-messages#clicking-on-sponsored-messages">click reporting for sponsored messages</a>.</p>
|
||||
<p>Also, anonymous channel admins can now vote in polls.</p>
|
||||
|
|
|
@ -49,13 +49,13 @@
|
|||
<a href='/constructor/messageEntityMentionName'>messageEntityMentionName</a>#dc7b1140 offset:<a href='/type/int'>int</a> length:<a href='/type/int'>int</a> user_id:<a href='/type/long'>long</a> = <a href='/type/MessageEntity'>MessageEntity</a>;
|
||||
<a href='/constructor/inputMessageEntityMentionName'>inputMessageEntityMentionName</a>#208e68c9 offset:<a href='/type/int'>int</a> length:<a href='/type/int'>int</a> user_id:<a href='/type/InputUser'>InputUser</a> = <a href='/type/MessageEntity'>MessageEntity</a>;
|
||||
|
||||
<a href='/constructor/message'>message</a>#38116ee0 flags:<a href='/type/%23'>#</a> out:flags.1?<a href='/constructor/true'>true</a> mentioned:flags.4?<a href='/constructor/true'>true</a> media_unread:flags.5?<a href='/constructor/true'>true</a> silent:flags.13?<a href='/constructor/true'>true</a> post:flags.14?<a href='/constructor/true'>true</a> from_scheduled:flags.18?<a href='/constructor/true'>true</a> legacy:flags.19?<a href='/constructor/true'>true</a> edit_hide:flags.21?<a href='/constructor/true'>true</a> pinned:flags.24?<a href='/constructor/true'>true</a> noforwards:flags.26?<a href='/constructor/true'>true</a> id:<a href='/type/int'>int</a> from_id:flags.8?<a href='/type/Peer'>Peer</a> peer_id:<a href='/type/Peer'>Peer</a> fwd_from:flags.2?<a href='/type/MessageFwdHeader'>MessageFwdHeader</a> via_bot_id:flags.11?<a href='/type/long'>long</a> reply_to:flags.3?<a href='/type/MessageReplyHeader'>MessageReplyHeader</a> date:<a href='/type/int'>int</a> message:<a href='/type/string'>string</a> media:flags.9?<a href='/type/MessageMedia'>MessageMedia</a> reply_markup:flags.6?<a href='/type/ReplyMarkup'>ReplyMarkup</a> entities:flags.7?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> views:flags.10?<a href='/type/int'>int</a> forwards:flags.10?<a href='/type/int'>int</a> replies:flags.23?<a href='/type/MessageReplies'>MessageReplies</a> edit_date:flags.15?<a href='/type/int'>int</a> post_author:flags.16?<a href='/type/string'>string</a> grouped_id:flags.17?<a href='/type/long'>long</a> reactions:flags.20?<a href='/type/MessageReactions'>MessageReactions</a> restriction_reason:flags.22?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> ttl_period:flags.25?<a href='/type/int'>int</a> = <a href='/type/Message'>Message</a>;
|
||||
<a href='/constructor/message'>message</a>#38116ee0 flags:<a href='/type/%23'>#</a> out:flags.1?<a href='/constructor/true'>true</a> mentioned:flags.4?<a href='/constructor/true'>true</a> media_unread:flags.5?<a href='/constructor/true'>true</a> silent:flags.13?<a href='/constructor/true'>true</a> post:flags.14?<a href='/constructor/true'>true</a> from_scheduled:flags.18?<a href='/constructor/true'>true</a> legacy:flags.19?<a href='/constructor/true'>true</a> edit_hide:flags.21?<a href='/constructor/true'>true</a> pinned:flags.24?<a href='/constructor/true'>true</a> noforwards:flags.26?<a href='/constructor/true'>true</a> invert_media:flags.27?<a href='/constructor/true'>true</a> id:<a href='/type/int'>int</a> from_id:flags.8?<a href='/type/Peer'>Peer</a> peer_id:<a href='/type/Peer'>Peer</a> fwd_from:flags.2?<a href='/type/MessageFwdHeader'>MessageFwdHeader</a> via_bot_id:flags.11?<a href='/type/long'>long</a> reply_to:flags.3?<a href='/type/MessageReplyHeader'>MessageReplyHeader</a> date:<a href='/type/int'>int</a> message:<a href='/type/string'>string</a> media:flags.9?<a href='/type/MessageMedia'>MessageMedia</a> reply_markup:flags.6?<a href='/type/ReplyMarkup'>ReplyMarkup</a> entities:flags.7?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> views:flags.10?<a href='/type/int'>int</a> forwards:flags.10?<a href='/type/int'>int</a> replies:flags.23?<a href='/type/MessageReplies'>MessageReplies</a> edit_date:flags.15?<a href='/type/int'>int</a> post_author:flags.16?<a href='/type/string'>string</a> grouped_id:flags.17?<a href='/type/long'>long</a> reactions:flags.20?<a href='/type/MessageReactions'>MessageReactions</a> restriction_reason:flags.22?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> ttl_period:flags.25?<a href='/type/int'>int</a> = <a href='/type/Message'>Message</a>;
|
||||
|
||||
<a href='/constructor/channelParticipantsMentions'>channelParticipantsMentions</a>#e04b5ceb flags:<a href='/type/%23'>#</a> q:flags.0?<a href='/type/string'>string</a> top_msg_id:flags.1?<a href='/type/int'>int</a> = <a href='/type/ChannelParticipantsFilter'>ChannelParticipantsFilter</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/messages.sendMessage'>messages.sendMessage</a>#280d096f flags:<a href='/type/%23'>#</a> no_webpage:flags.1?<a href='/constructor/true'>true</a> silent:flags.5?<a href='/constructor/true'>true</a> background:flags.6?<a href='/constructor/true'>true</a> clear_draft:flags.7?<a href='/constructor/true'>true</a> noforwards:flags.14?<a href='/constructor/true'>true</a> update_stickersets_order:flags.15?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> reply_to:flags.0?<a href='/type/InputReplyTo'>InputReplyTo</a> message:<a href='/type/string'>string</a> random_id:<a href='/type/long'>long</a> reply_markup:flags.2?<a href='/type/ReplyMarkup'>ReplyMarkup</a> entities:flags.3?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> schedule_date:flags.10?<a href='/type/int'>int</a> send_as:flags.13?<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/Updates'>Updates</a>;
|
||||
<a href='/method/messages.sendMessage'>messages.sendMessage</a>#280d096f flags:<a href='/type/%23'>#</a> no_webpage:flags.1?<a href='/constructor/true'>true</a> silent:flags.5?<a href='/constructor/true'>true</a> background:flags.6?<a href='/constructor/true'>true</a> clear_draft:flags.7?<a href='/constructor/true'>true</a> noforwards:flags.14?<a href='/constructor/true'>true</a> update_stickersets_order:flags.15?<a href='/constructor/true'>true</a> invert_media:flags.16?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> reply_to:flags.0?<a href='/type/InputReplyTo'>InputReplyTo</a> message:<a href='/type/string'>string</a> random_id:<a href='/type/long'>long</a> reply_markup:flags.2?<a href='/type/ReplyMarkup'>ReplyMarkup</a> entities:flags.3?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> schedule_date:flags.10?<a href='/type/int'>int</a> send_as:flags.13?<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/Updates'>Updates</a>;
|
||||
|
||||
<a href='/method/channels.getParticipants'>channels.getParticipants</a>#77ced9d0 channel:<a href='/type/InputChannel'>InputChannel</a> filter:<a href='/type/ChannelParticipantsFilter'>ChannelParticipantsFilter</a> offset:<a href='/type/int'>int</a> limit:<a href='/type/int'>int</a> hash:<a href='/type/long'>long</a> = <a href='/type/channels.ChannelParticipants'>channels.ChannelParticipants</a>;</code></pre>
|
||||
<p>Mentions are implemented as <a href="/api/entities">message entities</a>, passed to the <a href="/method/messages.sendMessage">messages.sendMessage</a> method:</p>
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<div id="dev_page_content"><!-- scroll_nav -->
|
||||
|
||||
<p>Telegram allows pinning multiple messages on top of a specific chat. </p>
|
||||
<pre><code><a href='/constructor/message'>message</a>#38116ee0 flags:<a href='/type/%23'>#</a> out:flags.1?<a href='/constructor/true'>true</a> mentioned:flags.4?<a href='/constructor/true'>true</a> media_unread:flags.5?<a href='/constructor/true'>true</a> silent:flags.13?<a href='/constructor/true'>true</a> post:flags.14?<a href='/constructor/true'>true</a> from_scheduled:flags.18?<a href='/constructor/true'>true</a> legacy:flags.19?<a href='/constructor/true'>true</a> edit_hide:flags.21?<a href='/constructor/true'>true</a> pinned:flags.24?<a href='/constructor/true'>true</a> noforwards:flags.26?<a href='/constructor/true'>true</a> id:<a href='/type/int'>int</a> from_id:flags.8?<a href='/type/Peer'>Peer</a> peer_id:<a href='/type/Peer'>Peer</a> fwd_from:flags.2?<a href='/type/MessageFwdHeader'>MessageFwdHeader</a> via_bot_id:flags.11?<a href='/type/long'>long</a> reply_to:flags.3?<a href='/type/MessageReplyHeader'>MessageReplyHeader</a> date:<a href='/type/int'>int</a> message:<a href='/type/string'>string</a> media:flags.9?<a href='/type/MessageMedia'>MessageMedia</a> reply_markup:flags.6?<a href='/type/ReplyMarkup'>ReplyMarkup</a> entities:flags.7?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> views:flags.10?<a href='/type/int'>int</a> forwards:flags.10?<a href='/type/int'>int</a> replies:flags.23?<a href='/type/MessageReplies'>MessageReplies</a> edit_date:flags.15?<a href='/type/int'>int</a> post_author:flags.16?<a href='/type/string'>string</a> grouped_id:flags.17?<a href='/type/long'>long</a> reactions:flags.20?<a href='/type/MessageReactions'>MessageReactions</a> restriction_reason:flags.22?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> ttl_period:flags.25?<a href='/type/int'>int</a> = <a href='/type/Message'>Message</a>;
|
||||
<pre><code><a href='/constructor/message'>message</a>#38116ee0 flags:<a href='/type/%23'>#</a> out:flags.1?<a href='/constructor/true'>true</a> mentioned:flags.4?<a href='/constructor/true'>true</a> media_unread:flags.5?<a href='/constructor/true'>true</a> silent:flags.13?<a href='/constructor/true'>true</a> post:flags.14?<a href='/constructor/true'>true</a> from_scheduled:flags.18?<a href='/constructor/true'>true</a> legacy:flags.19?<a href='/constructor/true'>true</a> edit_hide:flags.21?<a href='/constructor/true'>true</a> pinned:flags.24?<a href='/constructor/true'>true</a> noforwards:flags.26?<a href='/constructor/true'>true</a> invert_media:flags.27?<a href='/constructor/true'>true</a> id:<a href='/type/int'>int</a> from_id:flags.8?<a href='/type/Peer'>Peer</a> peer_id:<a href='/type/Peer'>Peer</a> fwd_from:flags.2?<a href='/type/MessageFwdHeader'>MessageFwdHeader</a> via_bot_id:flags.11?<a href='/type/long'>long</a> reply_to:flags.3?<a href='/type/MessageReplyHeader'>MessageReplyHeader</a> date:<a href='/type/int'>int</a> message:<a href='/type/string'>string</a> media:flags.9?<a href='/type/MessageMedia'>MessageMedia</a> reply_markup:flags.6?<a href='/type/ReplyMarkup'>ReplyMarkup</a> entities:flags.7?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> views:flags.10?<a href='/type/int'>int</a> forwards:flags.10?<a href='/type/int'>int</a> replies:flags.23?<a href='/type/MessageReplies'>MessageReplies</a> edit_date:flags.15?<a href='/type/int'>int</a> post_author:flags.16?<a href='/type/string'>string</a> grouped_id:flags.17?<a href='/type/long'>long</a> reactions:flags.20?<a href='/type/MessageReactions'>MessageReactions</a> restriction_reason:flags.22?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> ttl_period:flags.25?<a href='/type/int'>int</a> = <a href='/type/Message'>Message</a>;
|
||||
|
||||
<a href='/constructor/updatePinnedMessages'>updatePinnedMessages</a>#ed85eab5 flags:<a href='/type/%23'>#</a> pinned:flags.0?<a href='/constructor/true'>true</a> peer:<a href='/type/Peer'>Peer</a> messages:<a href='/type/Vector%20t'>Vector</a><<a href='/type/int'>int</a>> pts:<a href='/type/int'>int</a> pts_count:<a href='/type/int'>int</a> = <a href='/type/Update'>Update</a>;
|
||||
<a href='/constructor/updatePinnedChannelMessages'>updatePinnedChannelMessages</a>#5bb98608 flags:<a href='/type/%23'>#</a> pinned:flags.0?<a href='/constructor/true'>true</a> channel_id:<a href='/type/long'>long</a> messages:<a href='/type/Vector%20t'>Vector</a><<a href='/type/int'>int</a>> pts:<a href='/type/int'>int</a> pts_count:<a href='/type/int'>int</a> = <a href='/type/Update'>Update</a>;
|
||||
|
@ -63,7 +63,7 @@ The <code>unpin</code> flags specifies whether to unpin or pin the message, and
|
|||
<p>When (un)pinning messages, a <a href="/constructor/updatePinnedMessages">updatePinnedMessages</a> or <a href="/constructor/updatePinnedChannelMessages">updatePinnedChannelMessages</a> update will be emitted, containing IDs of pinned or unpinned messages. </p>
|
||||
<p>Pinned messages will also have the will also have the <code>pinned</code> flag of <a href="/constructor/message">message</a> set.</p>
|
||||
<h3><a class="anchor" href="#getting-pinned-messages" id="getting-pinned-messages" name="getting-pinned-messages"><i class="anchor-icon"></i></a>Getting pinned messages</h3>
|
||||
<pre><code><a href='/constructor/userFull'>userFull</a>#b9b12c6c flags:<a href='/type/%23'>#</a> blocked:flags.0?<a href='/constructor/true'>true</a> phone_calls_available:flags.4?<a href='/constructor/true'>true</a> phone_calls_private:flags.5?<a href='/constructor/true'>true</a> can_pin_message:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.12?<a href='/constructor/true'>true</a> video_calls_available:flags.13?<a href='/constructor/true'>true</a> voice_messages_forbidden:flags.20?<a href='/constructor/true'>true</a> translations_disabled:flags.23?<a href='/constructor/true'>true</a> stories_pinned_available:flags.26?<a href='/constructor/true'>true</a> blocked_my_stories_from:flags.27?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:flags.1?<a href='/type/string'>string</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> personal_photo:flags.21?<a href='/type/Photo'>Photo</a> profile_photo:flags.2?<a href='/type/Photo'>Photo</a> fallback_photo:flags.22?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> bot_info:flags.3?<a href='/type/BotInfo'>BotInfo</a> pinned_msg_id:flags.6?<a href='/type/int'>int</a> common_chats_count:<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> ttl_period:flags.14?<a href='/type/int'>int</a> theme_emoticon:flags.15?<a href='/type/string'>string</a> private_forward_name:flags.16?<a href='/type/string'>string</a> bot_group_admin_rights:flags.17?<a href='/type/ChatAdminRights'>ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href='/type/ChatAdminRights'>ChatAdminRights</a> premium_gifts:flags.19?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumGiftOption'>PremiumGiftOption</a>> wallpaper:flags.24?<a href='/type/WallPaper'>WallPaper</a> stories:flags.25?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/UserFull'>UserFull</a>;
|
||||
<pre><code><a href='/constructor/userFull'>userFull</a>#b9b12c6c flags:<a href='/type/%23'>#</a> blocked:flags.0?<a href='/constructor/true'>true</a> phone_calls_available:flags.4?<a href='/constructor/true'>true</a> phone_calls_private:flags.5?<a href='/constructor/true'>true</a> can_pin_message:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.12?<a href='/constructor/true'>true</a> video_calls_available:flags.13?<a href='/constructor/true'>true</a> voice_messages_forbidden:flags.20?<a href='/constructor/true'>true</a> translations_disabled:flags.23?<a href='/constructor/true'>true</a> stories_pinned_available:flags.26?<a href='/constructor/true'>true</a> blocked_my_stories_from:flags.27?<a href='/constructor/true'>true</a> wallpaper_overridden:flags.28?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:flags.1?<a href='/type/string'>string</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> personal_photo:flags.21?<a href='/type/Photo'>Photo</a> profile_photo:flags.2?<a href='/type/Photo'>Photo</a> fallback_photo:flags.22?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> bot_info:flags.3?<a href='/type/BotInfo'>BotInfo</a> pinned_msg_id:flags.6?<a href='/type/int'>int</a> common_chats_count:<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> ttl_period:flags.14?<a href='/type/int'>int</a> theme_emoticon:flags.15?<a href='/type/string'>string</a> private_forward_name:flags.16?<a href='/type/string'>string</a> bot_group_admin_rights:flags.17?<a href='/type/ChatAdminRights'>ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href='/type/ChatAdminRights'>ChatAdminRights</a> premium_gifts:flags.19?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumGiftOption'>PremiumGiftOption</a>> wallpaper:flags.24?<a href='/type/WallPaper'>WallPaper</a> stories:flags.25?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/UserFull'>UserFull</a>;
|
||||
<a href='/constructor/chatFull'>chatFull</a>#c9d31138 flags:<a href='/type/%23'>#</a> can_set_username:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.8?<a href='/constructor/true'>true</a> translations_disabled:flags.19?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants:<a href='/type/ChatParticipants'>ChatParticipants</a> chat_photo:flags.2?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.13?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:flags.3?<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> pinned_msg_id:flags.6?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> call:flags.12?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.14?<a href='/type/int'>int</a> groupcall_default_join_as:flags.15?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.16?<a href='/type/string'>string</a> requests_pending:flags.17?<a href='/type/int'>int</a> recent_requesters:flags.17?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> available_reactions:flags.18?<a href='/type/ChatReactions'>ChatReactions</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> view_forum_as_messages:flags2.6?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
|
||||
---functions---
|
||||
|
||||
<a href='/method/messages.sendMedia'>messages.sendMedia</a>#72ccc23d flags:<a href='/type/%23'>#</a> silent:flags.5?<a href='/constructor/true'>true</a> background:flags.6?<a href='/constructor/true'>true</a> clear_draft:flags.7?<a href='/constructor/true'>true</a> noforwards:flags.14?<a href='/constructor/true'>true</a> update_stickersets_order:flags.15?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> reply_to:flags.0?<a href='/type/InputReplyTo'>InputReplyTo</a> media:<a href='/type/InputMedia'>InputMedia</a> message:<a href='/type/string'>string</a> random_id:<a href='/type/long'>long</a> reply_markup:flags.2?<a href='/type/ReplyMarkup'>ReplyMarkup</a> entities:flags.3?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> schedule_date:flags.10?<a href='/type/int'>int</a> send_as:flags.13?<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/Updates'>Updates</a>;</code></pre>
|
||||
<a href='/method/messages.sendMedia'>messages.sendMedia</a>#72ccc23d flags:<a href='/type/%23'>#</a> silent:flags.5?<a href='/constructor/true'>true</a> background:flags.6?<a href='/constructor/true'>true</a> clear_draft:flags.7?<a href='/constructor/true'>true</a> noforwards:flags.14?<a href='/constructor/true'>true</a> update_stickersets_order:flags.15?<a href='/constructor/true'>true</a> invert_media:flags.16?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> reply_to:flags.0?<a href='/type/InputReplyTo'>InputReplyTo</a> media:<a href='/type/InputMedia'>InputMedia</a> message:<a href='/type/string'>string</a> random_id:<a href='/type/long'>long</a> reply_markup:flags.2?<a href='/type/ReplyMarkup'>ReplyMarkup</a> entities:flags.3?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> schedule_date:flags.10?<a href='/type/int'>int</a> send_as:flags.13?<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/Updates'>Updates</a>;</code></pre>
|
||||
<p>To send a poll in a chat, call <a href="/method/messages.sendMedia">messages.sendMedia</a>, providing an <a href="/constructor/inputMediaPoll">inputMediaPoll</a>:</p>
|
||||
<ul>
|
||||
<li>
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
<h3><a class="anchor" href="#telegram-premium-users" id="telegram-premium-users" name="telegram-premium-users"><i class="anchor-icon"></i></a>Telegram Premium users</h3>
|
||||
<pre><code><a href='/constructor/inputUserSelf'>inputUserSelf</a>#f7c1b13f = <a href='/type/InputUser'>InputUser</a>;
|
||||
|
||||
<a href='/constructor/user'>user</a>#abb5f120 flags:<a href='/type/%23'>#</a> self:flags.10?<a href='/constructor/true'>true</a> contact:flags.11?<a href='/constructor/true'>true</a> mutual_contact:flags.12?<a href='/constructor/true'>true</a> deleted:flags.13?<a href='/constructor/true'>true</a> bot:flags.14?<a href='/constructor/true'>true</a> bot_chat_history:flags.15?<a href='/constructor/true'>true</a> bot_nochats:flags.16?<a href='/constructor/true'>true</a> verified:flags.17?<a href='/constructor/true'>true</a> restricted:flags.18?<a href='/constructor/true'>true</a> min:flags.20?<a href='/constructor/true'>true</a> bot_inline_geo:flags.21?<a href='/constructor/true'>true</a> support:flags.23?<a href='/constructor/true'>true</a> scam:flags.24?<a href='/constructor/true'>true</a> apply_min_photo:flags.25?<a href='/constructor/true'>true</a> fake:flags.26?<a href='/constructor/true'>true</a> bot_attach_menu:flags.27?<a href='/constructor/true'>true</a> premium:flags.28?<a href='/constructor/true'>true</a> attach_menu_enabled:flags.29?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> bot_can_edit:flags2.1?<a href='/constructor/true'>true</a> close_friend:flags2.2?<a href='/constructor/true'>true</a> stories_hidden:flags2.3?<a href='/constructor/true'>true</a> stories_unavailable:flags2.4?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.0?<a href='/type/long'>long</a> first_name:flags.1?<a href='/type/string'>string</a> last_name:flags.2?<a href='/type/string'>string</a> username:flags.3?<a href='/type/string'>string</a> phone:flags.4?<a href='/type/string'>string</a> photo:flags.5?<a href='/type/UserProfilePhoto'>UserProfilePhoto</a> status:flags.6?<a href='/type/UserStatus'>UserStatus</a> bot_info_version:flags.14?<a href='/type/int'>int</a> restriction_reason:flags.18?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href='/type/string'>string</a> lang_code:flags.22?<a href='/type/string'>string</a> emoji_status:flags.30?<a href='/type/EmojiStatus'>EmojiStatus</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.5?<a href='/type/int'>int</a> = <a href='/type/User'>User</a>;
|
||||
<a href='/constructor/user'>user</a>#215c4438 flags:<a href='/type/%23'>#</a> self:flags.10?<a href='/constructor/true'>true</a> contact:flags.11?<a href='/constructor/true'>true</a> mutual_contact:flags.12?<a href='/constructor/true'>true</a> deleted:flags.13?<a href='/constructor/true'>true</a> bot:flags.14?<a href='/constructor/true'>true</a> bot_chat_history:flags.15?<a href='/constructor/true'>true</a> bot_nochats:flags.16?<a href='/constructor/true'>true</a> verified:flags.17?<a href='/constructor/true'>true</a> restricted:flags.18?<a href='/constructor/true'>true</a> min:flags.20?<a href='/constructor/true'>true</a> bot_inline_geo:flags.21?<a href='/constructor/true'>true</a> support:flags.23?<a href='/constructor/true'>true</a> scam:flags.24?<a href='/constructor/true'>true</a> apply_min_photo:flags.25?<a href='/constructor/true'>true</a> fake:flags.26?<a href='/constructor/true'>true</a> bot_attach_menu:flags.27?<a href='/constructor/true'>true</a> premium:flags.28?<a href='/constructor/true'>true</a> attach_menu_enabled:flags.29?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> bot_can_edit:flags2.1?<a href='/constructor/true'>true</a> close_friend:flags2.2?<a href='/constructor/true'>true</a> stories_hidden:flags2.3?<a href='/constructor/true'>true</a> stories_unavailable:flags2.4?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.0?<a href='/type/long'>long</a> first_name:flags.1?<a href='/type/string'>string</a> last_name:flags.2?<a href='/type/string'>string</a> username:flags.3?<a href='/type/string'>string</a> phone:flags.4?<a href='/type/string'>string</a> photo:flags.5?<a href='/type/UserProfilePhoto'>UserProfilePhoto</a> status:flags.6?<a href='/type/UserStatus'>UserStatus</a> bot_info_version:flags.14?<a href='/type/int'>int</a> restriction_reason:flags.18?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href='/type/string'>string</a> lang_code:flags.22?<a href='/type/string'>string</a> emoji_status:flags.30?<a href='/type/EmojiStatus'>EmojiStatus</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.5?<a href='/type/int'>int</a> color:flags2.8?<a href='/type/PeerColor'>PeerColor</a> profile_color:flags2.9?<a href='/type/PeerColor'>PeerColor</a> = <a href='/type/User'>User</a>;
|
||||
|
||||
<a href='/constructor/help.premiumPromo'>help.premiumPromo</a>#5334759c status_text:<a href='/type/string'>string</a> status_entities:<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> video_sections:<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> videos:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Document'>Document</a>> period_options:<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumSubscriptionOption'>PremiumSubscriptionOption</a>> users:<a href='/type/Vector%20t'>Vector</a><<a href='/type/User'>User</a>> = <a href='/type/help.PremiumPromo'>help.PremiumPromo</a>;
|
||||
|
||||
|
@ -180,7 +180,7 @@ Then, when the user clicks on the subscribe button in the sent invoice, follow t
|
|||
</ul>
|
||||
<p>There is also a store-based subscription flow based on <a href="/method/payments.assignAppStoreTransaction">payments.assignAppStoreTransaction</a>/<a href="/method/payments.assignPlayMarketTransaction">payments.assignPlayMarketTransaction</a>, but it's currently not available to third-party apps (unlike the flow described above, which can be used by all clients).</p>
|
||||
<h3><a class="anchor" href="#gifting-telegram-premium" id="gifting-telegram-premium" name="gifting-telegram-premium"><i class="anchor-icon"></i></a>Gifting Telegram Premium</h3>
|
||||
<pre><code><a href='/constructor/userFull'>userFull</a>#b9b12c6c flags:<a href='/type/%23'>#</a> blocked:flags.0?<a href='/constructor/true'>true</a> phone_calls_available:flags.4?<a href='/constructor/true'>true</a> phone_calls_private:flags.5?<a href='/constructor/true'>true</a> can_pin_message:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.12?<a href='/constructor/true'>true</a> video_calls_available:flags.13?<a href='/constructor/true'>true</a> voice_messages_forbidden:flags.20?<a href='/constructor/true'>true</a> translations_disabled:flags.23?<a href='/constructor/true'>true</a> stories_pinned_available:flags.26?<a href='/constructor/true'>true</a> blocked_my_stories_from:flags.27?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:flags.1?<a href='/type/string'>string</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> personal_photo:flags.21?<a href='/type/Photo'>Photo</a> profile_photo:flags.2?<a href='/type/Photo'>Photo</a> fallback_photo:flags.22?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> bot_info:flags.3?<a href='/type/BotInfo'>BotInfo</a> pinned_msg_id:flags.6?<a href='/type/int'>int</a> common_chats_count:<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> ttl_period:flags.14?<a href='/type/int'>int</a> theme_emoticon:flags.15?<a href='/type/string'>string</a> private_forward_name:flags.16?<a href='/type/string'>string</a> bot_group_admin_rights:flags.17?<a href='/type/ChatAdminRights'>ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href='/type/ChatAdminRights'>ChatAdminRights</a> premium_gifts:flags.19?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumGiftOption'>PremiumGiftOption</a>> wallpaper:flags.24?<a href='/type/WallPaper'>WallPaper</a> stories:flags.25?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/UserFull'>UserFull</a>;
|
||||
<pre><code><a href='/constructor/userFull'>userFull</a>#b9b12c6c flags:<a href='/type/%23'>#</a> blocked:flags.0?<a href='/constructor/true'>true</a> phone_calls_available:flags.4?<a href='/constructor/true'>true</a> phone_calls_private:flags.5?<a href='/constructor/true'>true</a> can_pin_message:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.12?<a href='/constructor/true'>true</a> video_calls_available:flags.13?<a href='/constructor/true'>true</a> voice_messages_forbidden:flags.20?<a href='/constructor/true'>true</a> translations_disabled:flags.23?<a href='/constructor/true'>true</a> stories_pinned_available:flags.26?<a href='/constructor/true'>true</a> blocked_my_stories_from:flags.27?<a href='/constructor/true'>true</a> wallpaper_overridden:flags.28?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:flags.1?<a href='/type/string'>string</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> personal_photo:flags.21?<a href='/type/Photo'>Photo</a> profile_photo:flags.2?<a href='/type/Photo'>Photo</a> fallback_photo:flags.22?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> bot_info:flags.3?<a href='/type/BotInfo'>BotInfo</a> pinned_msg_id:flags.6?<a href='/type/int'>int</a> common_chats_count:<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> ttl_period:flags.14?<a href='/type/int'>int</a> theme_emoticon:flags.15?<a href='/type/string'>string</a> private_forward_name:flags.16?<a href='/type/string'>string</a> bot_group_admin_rights:flags.17?<a href='/type/ChatAdminRights'>ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href='/type/ChatAdminRights'>ChatAdminRights</a> premium_gifts:flags.19?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumGiftOption'>PremiumGiftOption</a>> wallpaper:flags.24?<a href='/type/WallPaper'>WallPaper</a> stories:flags.25?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/UserFull'>UserFull</a>;
|
||||
|
||||
<a href='/constructor/premiumGiftOption'>premiumGiftOption</a>#74c34319 flags:<a href='/type/%23'>#</a> months:<a href='/type/int'>int</a> currency:<a href='/type/string'>string</a> amount:<a href='/type/long'>long</a> bot_url:<a href='/type/string'>string</a> store_product:flags.0?<a href='/type/string'>string</a> = <a href='/type/PremiumGiftOption'>PremiumGiftOption</a>;
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
<a href='/constructor/privacyValueDisallowChatParticipants'>privacyValueDisallowChatParticipants</a>#41c87565 chats:<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> = <a href='/type/PrivacyRule'>PrivacyRule</a>;
|
||||
<a href='/constructor/privacyValueAllowCloseFriends'>privacyValueAllowCloseFriends</a>#f7e8d89b = <a href='/type/PrivacyRule'>PrivacyRule</a>;
|
||||
|
||||
<a href='/constructor/user'>user</a>#abb5f120 flags:<a href='/type/%23'>#</a> self:flags.10?<a href='/constructor/true'>true</a> contact:flags.11?<a href='/constructor/true'>true</a> mutual_contact:flags.12?<a href='/constructor/true'>true</a> deleted:flags.13?<a href='/constructor/true'>true</a> bot:flags.14?<a href='/constructor/true'>true</a> bot_chat_history:flags.15?<a href='/constructor/true'>true</a> bot_nochats:flags.16?<a href='/constructor/true'>true</a> verified:flags.17?<a href='/constructor/true'>true</a> restricted:flags.18?<a href='/constructor/true'>true</a> min:flags.20?<a href='/constructor/true'>true</a> bot_inline_geo:flags.21?<a href='/constructor/true'>true</a> support:flags.23?<a href='/constructor/true'>true</a> scam:flags.24?<a href='/constructor/true'>true</a> apply_min_photo:flags.25?<a href='/constructor/true'>true</a> fake:flags.26?<a href='/constructor/true'>true</a> bot_attach_menu:flags.27?<a href='/constructor/true'>true</a> premium:flags.28?<a href='/constructor/true'>true</a> attach_menu_enabled:flags.29?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> bot_can_edit:flags2.1?<a href='/constructor/true'>true</a> close_friend:flags2.2?<a href='/constructor/true'>true</a> stories_hidden:flags2.3?<a href='/constructor/true'>true</a> stories_unavailable:flags2.4?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.0?<a href='/type/long'>long</a> first_name:flags.1?<a href='/type/string'>string</a> last_name:flags.2?<a href='/type/string'>string</a> username:flags.3?<a href='/type/string'>string</a> phone:flags.4?<a href='/type/string'>string</a> photo:flags.5?<a href='/type/UserProfilePhoto'>UserProfilePhoto</a> status:flags.6?<a href='/type/UserStatus'>UserStatus</a> bot_info_version:flags.14?<a href='/type/int'>int</a> restriction_reason:flags.18?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href='/type/string'>string</a> lang_code:flags.22?<a href='/type/string'>string</a> emoji_status:flags.30?<a href='/type/EmojiStatus'>EmojiStatus</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.5?<a href='/type/int'>int</a> = <a href='/type/User'>User</a>;
|
||||
<a href='/constructor/user'>user</a>#215c4438 flags:<a href='/type/%23'>#</a> self:flags.10?<a href='/constructor/true'>true</a> contact:flags.11?<a href='/constructor/true'>true</a> mutual_contact:flags.12?<a href='/constructor/true'>true</a> deleted:flags.13?<a href='/constructor/true'>true</a> bot:flags.14?<a href='/constructor/true'>true</a> bot_chat_history:flags.15?<a href='/constructor/true'>true</a> bot_nochats:flags.16?<a href='/constructor/true'>true</a> verified:flags.17?<a href='/constructor/true'>true</a> restricted:flags.18?<a href='/constructor/true'>true</a> min:flags.20?<a href='/constructor/true'>true</a> bot_inline_geo:flags.21?<a href='/constructor/true'>true</a> support:flags.23?<a href='/constructor/true'>true</a> scam:flags.24?<a href='/constructor/true'>true</a> apply_min_photo:flags.25?<a href='/constructor/true'>true</a> fake:flags.26?<a href='/constructor/true'>true</a> bot_attach_menu:flags.27?<a href='/constructor/true'>true</a> premium:flags.28?<a href='/constructor/true'>true</a> attach_menu_enabled:flags.29?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> bot_can_edit:flags2.1?<a href='/constructor/true'>true</a> close_friend:flags2.2?<a href='/constructor/true'>true</a> stories_hidden:flags2.3?<a href='/constructor/true'>true</a> stories_unavailable:flags2.4?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.0?<a href='/type/long'>long</a> first_name:flags.1?<a href='/type/string'>string</a> last_name:flags.2?<a href='/type/string'>string</a> username:flags.3?<a href='/type/string'>string</a> phone:flags.4?<a href='/type/string'>string</a> photo:flags.5?<a href='/type/UserProfilePhoto'>UserProfilePhoto</a> status:flags.6?<a href='/type/UserStatus'>UserStatus</a> bot_info_version:flags.14?<a href='/type/int'>int</a> restriction_reason:flags.18?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href='/type/string'>string</a> lang_code:flags.22?<a href='/type/string'>string</a> emoji_status:flags.30?<a href='/type/EmojiStatus'>EmojiStatus</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.5?<a href='/type/int'>int</a> color:flags2.8?<a href='/type/PeerColor'>PeerColor</a> profile_color:flags2.9?<a href='/type/PeerColor'>PeerColor</a> = <a href='/type/User'>User</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
|
||||
<a href='/constructor/messageReactions'>messageReactions</a>#4f2b9479 flags:<a href='/type/%23'>#</a> min:flags.0?<a href='/constructor/true'>true</a> can_see_list:flags.2?<a href='/constructor/true'>true</a> results:<a href='/type/Vector%20t'>Vector</a><<a href='/type/ReactionCount'>ReactionCount</a>> recent_reactions:flags.1?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessagePeerReaction'>MessagePeerReaction</a>> = <a href='/type/MessageReactions'>MessageReactions</a>;
|
||||
|
||||
<a href='/constructor/message'>message</a>#38116ee0 flags:<a href='/type/%23'>#</a> out:flags.1?<a href='/constructor/true'>true</a> mentioned:flags.4?<a href='/constructor/true'>true</a> media_unread:flags.5?<a href='/constructor/true'>true</a> silent:flags.13?<a href='/constructor/true'>true</a> post:flags.14?<a href='/constructor/true'>true</a> from_scheduled:flags.18?<a href='/constructor/true'>true</a> legacy:flags.19?<a href='/constructor/true'>true</a> edit_hide:flags.21?<a href='/constructor/true'>true</a> pinned:flags.24?<a href='/constructor/true'>true</a> noforwards:flags.26?<a href='/constructor/true'>true</a> id:<a href='/type/int'>int</a> from_id:flags.8?<a href='/type/Peer'>Peer</a> peer_id:<a href='/type/Peer'>Peer</a> fwd_from:flags.2?<a href='/type/MessageFwdHeader'>MessageFwdHeader</a> via_bot_id:flags.11?<a href='/type/long'>long</a> reply_to:flags.3?<a href='/type/MessageReplyHeader'>MessageReplyHeader</a> date:<a href='/type/int'>int</a> message:<a href='/type/string'>string</a> media:flags.9?<a href='/type/MessageMedia'>MessageMedia</a> reply_markup:flags.6?<a href='/type/ReplyMarkup'>ReplyMarkup</a> entities:flags.7?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> views:flags.10?<a href='/type/int'>int</a> forwards:flags.10?<a href='/type/int'>int</a> replies:flags.23?<a href='/type/MessageReplies'>MessageReplies</a> edit_date:flags.15?<a href='/type/int'>int</a> post_author:flags.16?<a href='/type/string'>string</a> grouped_id:flags.17?<a href='/type/long'>long</a> reactions:flags.20?<a href='/type/MessageReactions'>MessageReactions</a> restriction_reason:flags.22?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> ttl_period:flags.25?<a href='/type/int'>int</a> = <a href='/type/Message'>Message</a>;
|
||||
<a href='/constructor/message'>message</a>#38116ee0 flags:<a href='/type/%23'>#</a> out:flags.1?<a href='/constructor/true'>true</a> mentioned:flags.4?<a href='/constructor/true'>true</a> media_unread:flags.5?<a href='/constructor/true'>true</a> silent:flags.13?<a href='/constructor/true'>true</a> post:flags.14?<a href='/constructor/true'>true</a> from_scheduled:flags.18?<a href='/constructor/true'>true</a> legacy:flags.19?<a href='/constructor/true'>true</a> edit_hide:flags.21?<a href='/constructor/true'>true</a> pinned:flags.24?<a href='/constructor/true'>true</a> noforwards:flags.26?<a href='/constructor/true'>true</a> invert_media:flags.27?<a href='/constructor/true'>true</a> id:<a href='/type/int'>int</a> from_id:flags.8?<a href='/type/Peer'>Peer</a> peer_id:<a href='/type/Peer'>Peer</a> fwd_from:flags.2?<a href='/type/MessageFwdHeader'>MessageFwdHeader</a> via_bot_id:flags.11?<a href='/type/long'>long</a> reply_to:flags.3?<a href='/type/MessageReplyHeader'>MessageReplyHeader</a> date:<a href='/type/int'>int</a> message:<a href='/type/string'>string</a> media:flags.9?<a href='/type/MessageMedia'>MessageMedia</a> reply_markup:flags.6?<a href='/type/ReplyMarkup'>ReplyMarkup</a> entities:flags.7?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> views:flags.10?<a href='/type/int'>int</a> forwards:flags.10?<a href='/type/int'>int</a> replies:flags.23?<a href='/type/MessageReplies'>MessageReplies</a> edit_date:flags.15?<a href='/type/int'>int</a> post_author:flags.16?<a href='/type/string'>string</a> grouped_id:flags.17?<a href='/type/long'>long</a> reactions:flags.20?<a href='/type/MessageReactions'>MessageReactions</a> restriction_reason:flags.22?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> ttl_period:flags.25?<a href='/type/int'>int</a> = <a href='/type/Message'>Message</a>;
|
||||
|
||||
<a href='/constructor/updateMessageReactions'>updateMessageReactions</a>#5e1b3cb8 flags:<a href='/type/%23'>#</a> peer:<a href='/type/Peer'>Peer</a> msg_id:<a href='/type/int'>int</a> top_msg_id:flags.0?<a href='/type/int'>int</a> reactions:<a href='/type/MessageReactions'>MessageReactions</a> = <a href='/type/Update'>Update</a>;
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
<p><a href="/method/messages.translateText">messages.translateText</a> can be used to translate a list of chat messages (by populating the <code>peer</code> and <code>id</code> flags), or a generic list of messages (by populating the <code>text</code> flag, for example when translating instant view articles). </p>
|
||||
<p>The method will return a vector of <a href="/constructor/textWithEntities">textWithEntities</a> constructors, containing the translated text, and, only for <a href="/api/premium">Telegram Premium</a> users, the corresponding <a href="/api/entities">styled text entities</a> (i.e. correctly repositioned <strong>bold</strong>, <em>italic</em>, link entities for the translated message, corresponding to the same entities in the original message). </p>
|
||||
<h3><a class="anchor" href="#real-time-translation" id="real-time-translation" name="real-time-translation"><i class="anchor-icon"></i></a>Real-time translation</h3>
|
||||
<pre><code><a href='/constructor/userFull'>userFull</a>#b9b12c6c flags:<a href='/type/%23'>#</a> blocked:flags.0?<a href='/constructor/true'>true</a> phone_calls_available:flags.4?<a href='/constructor/true'>true</a> phone_calls_private:flags.5?<a href='/constructor/true'>true</a> can_pin_message:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.12?<a href='/constructor/true'>true</a> video_calls_available:flags.13?<a href='/constructor/true'>true</a> voice_messages_forbidden:flags.20?<a href='/constructor/true'>true</a> translations_disabled:flags.23?<a href='/constructor/true'>true</a> stories_pinned_available:flags.26?<a href='/constructor/true'>true</a> blocked_my_stories_from:flags.27?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:flags.1?<a href='/type/string'>string</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> personal_photo:flags.21?<a href='/type/Photo'>Photo</a> profile_photo:flags.2?<a href='/type/Photo'>Photo</a> fallback_photo:flags.22?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> bot_info:flags.3?<a href='/type/BotInfo'>BotInfo</a> pinned_msg_id:flags.6?<a href='/type/int'>int</a> common_chats_count:<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> ttl_period:flags.14?<a href='/type/int'>int</a> theme_emoticon:flags.15?<a href='/type/string'>string</a> private_forward_name:flags.16?<a href='/type/string'>string</a> bot_group_admin_rights:flags.17?<a href='/type/ChatAdminRights'>ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href='/type/ChatAdminRights'>ChatAdminRights</a> premium_gifts:flags.19?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumGiftOption'>PremiumGiftOption</a>> wallpaper:flags.24?<a href='/type/WallPaper'>WallPaper</a> stories:flags.25?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/UserFull'>UserFull</a>;
|
||||
<pre><code><a href='/constructor/userFull'>userFull</a>#b9b12c6c flags:<a href='/type/%23'>#</a> blocked:flags.0?<a href='/constructor/true'>true</a> phone_calls_available:flags.4?<a href='/constructor/true'>true</a> phone_calls_private:flags.5?<a href='/constructor/true'>true</a> can_pin_message:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.12?<a href='/constructor/true'>true</a> video_calls_available:flags.13?<a href='/constructor/true'>true</a> voice_messages_forbidden:flags.20?<a href='/constructor/true'>true</a> translations_disabled:flags.23?<a href='/constructor/true'>true</a> stories_pinned_available:flags.26?<a href='/constructor/true'>true</a> blocked_my_stories_from:flags.27?<a href='/constructor/true'>true</a> wallpaper_overridden:flags.28?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:flags.1?<a href='/type/string'>string</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> personal_photo:flags.21?<a href='/type/Photo'>Photo</a> profile_photo:flags.2?<a href='/type/Photo'>Photo</a> fallback_photo:flags.22?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> bot_info:flags.3?<a href='/type/BotInfo'>BotInfo</a> pinned_msg_id:flags.6?<a href='/type/int'>int</a> common_chats_count:<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> ttl_period:flags.14?<a href='/type/int'>int</a> theme_emoticon:flags.15?<a href='/type/string'>string</a> private_forward_name:flags.16?<a href='/type/string'>string</a> bot_group_admin_rights:flags.17?<a href='/type/ChatAdminRights'>ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href='/type/ChatAdminRights'>ChatAdminRights</a> premium_gifts:flags.19?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumGiftOption'>PremiumGiftOption</a>> wallpaper:flags.24?<a href='/type/WallPaper'>WallPaper</a> stories:flags.25?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/UserFull'>UserFull</a>;
|
||||
|
||||
<a href='/constructor/chatFull'>chatFull</a>#c9d31138 flags:<a href='/type/%23'>#</a> can_set_username:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.8?<a href='/constructor/true'>true</a> translations_disabled:flags.19?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants:<a href='/type/ChatParticipants'>ChatParticipants</a> chat_photo:flags.2?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.13?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:flags.3?<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> pinned_msg_id:flags.6?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> call:flags.12?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.14?<a href='/type/int'>int</a> groupcall_default_join_as:flags.15?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.16?<a href='/type/string'>string</a> requests_pending:flags.17?<a href='/type/int'>int</a> recent_requesters:flags.17?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> available_reactions:flags.18?<a href='/type/ChatReactions'>ChatReactions</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
|
||||
|
|
|
@ -136,6 +136,11 @@
|
|||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.4?<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>></td>
|
||||
<td>A few of the participants that are in the group</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>color</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
|
|
|
@ -4,30 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>inputReplyToMessage</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Reply to a message.
|
||||
Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
flags
|
||||
#
|
||||
Flags, see TL conditional fields
|
||||
reply_to_msg_id
|
||||
int
|
||||
The message…">
|
||||
<meta property="description" content="Reply to a message.">
|
||||
<meta property="og:title" content="inputReplyToMessage">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Reply to a message.
|
||||
Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
flags
|
||||
#
|
||||
Flags, see TL conditional fields
|
||||
reply_to_msg_id
|
||||
int
|
||||
The message…">
|
||||
<meta property="og:description" content="Reply to a message.">
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -101,10 +81,33 @@ The message…">
|
|||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/type/int">int</a></td>
|
||||
<td>This field must contain the topic ID <strong>only</strong> when replying to messages in forum topics different from the "General" topic (i.e. <code>reply_to_msg_id</code> is set and <code>reply_to_msg_id != topicID</code> and <code>topicID != 1</code>). <br>If the replied-to message is deleted before the method finishes execution, the value in this field will be used to send the message to the correct topic, instead of the "General" topic.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>reply_to_peer_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/type/InputPeer">InputPeer</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>quote_text</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/type/string">string</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>quote_entities</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>></td>
|
||||
<td><a href="/api/entities">Message entities for styled text</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>quote_offset</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.4?<a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/InputReplyTo">InputReplyTo</a></p></div>
|
||||
<p><a href="/type/InputReplyTo">InputReplyTo</a></p>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#styled-text-with-message-entities" id="styled-text-with-message-entities" name="styled-text-with-message-entities"><i class="anchor-icon"></i></a><a href="/api/entities">Styled text with message entities</a></h4>
|
||||
<p>How to create styled text with message entities</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -122,6 +122,11 @@
|
|||
<td>Whether this message is <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">protected</a> and thus cannot be forwarded; clients should also prevent users from saving attached media (i.e. videos should only be streamed, photos should be kept in RAM, et cetera).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>invert_media</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.27?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>ID of the message</td>
|
||||
|
|
|
@ -117,6 +117,11 @@
|
|||
<td>Sponsored website</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>app</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.10?<a href="/type/BotApp">BotApp</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>message</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>Sponsored message</td>
|
||||
|
@ -127,6 +132,11 @@
|
|||
<td><a href="/api/entities">Message entities for styled text</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>button_text</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.11?<a href="/type/string">string</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>sponsor_info</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.7?<a href="/type/string">string</a></td>
|
||||
<td>If set, contains additional information about the sponsor to be shown along with the message.</td>
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/stories.BoostersList">stories.BoostersList</a></p>
|
||||
<p> </p>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#pagination-in-the-api" id="pagination-in-the-api" name="pagination-in-the-api"><i class="anchor-icon"></i></a><a href="/api/offsets">Pagination in the API</a></h4>
|
||||
<p>How to fetch results from large lists of objects.</p>
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/stories.BoostsStatus">stories.BoostsStatus</a></p>
|
||||
<p> </p>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/boost">Channel boosts</a></h4>
|
||||
<p>Telegram Premium users can grant their favorite channels additional features like the ability to post stories by giving them boosts.</p></div>
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<p>This constructor does not require any parameters.</p>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/stories.CanApplyBoostResult">stories.CanApplyBoostResult</a></p></div>
|
||||
<p> </p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/stories.CanApplyBoostResult">stories.CanApplyBoostResult</a></p></div>
|
||||
<p> </p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -127,6 +127,11 @@
|
|||
<td>When was the story posted.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>fwd_from</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.17?<a href="/type/StoryFwdHeader">StoryFwdHeader</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>expire_date</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>When does the story expire.</td>
|
||||
|
|
|
@ -105,6 +105,11 @@
|
|||
<td>Whether to move used stickersets to top, <a href="/api/stickers#recent-stickersets">see here for more info on this flag »</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>invert_media</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.16?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>peer</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/InputPeer">InputPeer</a></td>
|
||||
<td>Destination</td>
|
||||
|
|
|
@ -105,6 +105,11 @@
|
|||
<td>Whether to move used stickersets to top, <a href="/api/stickers#recent-stickersets">see here for more info on this flag »</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>invert_media</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.16?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>peer</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/InputPeer">InputPeer</a></td>
|
||||
<td>The destination chat</td>
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
|
||||
<p><a href="/type/stories.CanApplyBoostResult">stories.CanApplyBoostResult</a></p>
|
||||
<p> </p>
|
||||
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
|
||||
<p><a href="/type/stories.BoostersList">stories.BoostersList</a></p>
|
||||
<p> </p>
|
||||
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
|
||||
<p><a href="/type/stories.BoostsStatus">stories.BoostsStatus</a></p>
|
||||
<p> </p>
|
||||
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
|
|
|
@ -90,6 +90,11 @@
|
|||
<td>If set, disables forwards, screenshots, and downloads.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>fwd_modified</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.7?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>peer</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/InputPeer">InputPeer</a></td>
|
||||
<td>The peer to send the story as.</td>
|
||||
|
@ -129,6 +134,16 @@
|
|||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.3?<a href="/type/int">int</a></td>
|
||||
<td>Period after which the story is moved to archive (and to the profile if <code>pinned</code> is set), in seconds; must be one of <code>6 * 3600</code>, <code>12 * 3600</code>, <code>86400</code>, or <code>2 * 86400</code> for Telegram Premium users, and <code>86400</code> otherwise.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>fwd_from_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.6?<a href="/type/InputPeer">InputPeer</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>fwd_from_story</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.6?<a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
|
||||
|
|
|
@ -533,33 +533,6 @@ Look for updates of telegram's terms of service…">
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#working-with-channel-boosts" id="working-with-channel-boosts" name="working-with-channel-boosts"><i class="anchor-icon"></i></a>Working with <a href="/api/boost">channel boosts</a></h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/stories.getBoostsStatus">stories.getBoostsStatus</a></td>
|
||||
<td>Get the current <a href="/api/boost">boost status</a> of a channel, see <a href="/api/boost">here »</a> for more info on boosts.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/stories.getBoostersList">stories.getBoostersList</a></td>
|
||||
<td>Obtain info about the users currently <a href="/api/boost">boosting</a> a channel, see <a href="/api/boost">here »</a> for more info about boosts.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/stories.canApplyBoost">stories.canApplyBoost</a></td>
|
||||
<td>Check whether a channel can be <a href="/api/boost">boosted, see here for more info »</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/stories.applyBoost">stories.applyBoost</a></td>
|
||||
<td><a href="/api/boost">Boost »</a> a <a href="/api/channel">channel</a>, leveling it up and granting it permission to post <a href="/api/stories">stories »</a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#working-with-channels-supergroups-geogroups" id="working-with-channels-supergroups-geogroups" name="working-with-channels-supergroups-geogroups"><i class="anchor-icon"></i></a>Working with <a href="/api/channel">channels/supergroups/geogroups</a></h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
|
@ -2995,6 +2968,97 @@ Look for updates of telegram's terms of service…">
|
|||
<td>Resolve a @username to get peer info</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#other" id="other" name="other"><i class="anchor-icon"></i></a>Other</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/payments.getPremiumGiftCodeOptions">payments.getPremiumGiftCodeOptions</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/payments.checkGiftCode">payments.checkGiftCode</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/payments.applyGiftCode">payments.applyGiftCode</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/payments.getGiveawayInfo">payments.getGiveawayInfo</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/payments.launchPrepaidGiveaway">payments.launchPrepaidGiveaway</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/account.updateColor">account.updateColor</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/channels.updateColor">channels.updateColor</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/account.getDefaultBackgroundEmojis">account.getDefaultBackgroundEmojis</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/premium.getBoostsList">premium.getBoostsList</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/premium.getMyBoosts">premium.getMyBoosts</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/premium.applyBoost">premium.applyBoost</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/premium.getBoostsStatus">premium.getBoostsStatus</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/premium.getUserBoosts">premium.getUserBoosts</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/channels.toggleViewForumAsMessages">channels.toggleViewForumAsMessages</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/messages.searchEmojiStickerSets">messages.searchEmojiStickerSets</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/channels.getChannelRecommendations">channels.getChannelRecommendations</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/stats.getStoryStats">stats.getStoryStats</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/stats.getStoryPublicForwards">stats.getStoryPublicForwards</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/help.getPeerColors">help.getPeerColors</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/help.getPeerProfileColors">help.getPeerProfileColors</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -53,9 +53,9 @@
|
|||
<h5><a class="anchor" href="#1-client-sends-query-to-server" id="1-client-sends-query-to-server" name="1-client-sends-query-to-server"><i class="anchor-icon"></i></a>1) Client sends query to server</h5>
|
||||
<!-- start req_pq_multi -->
|
||||
<p>Sent payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 74 5F 02 00 46 E5 70 65
|
||||
0010 | 14 00 00 00 F1 8E 7E BE 0A 95 A3 0D D1 75 4A BF
|
||||
0020 | 28 3B CE 96 F3 B3 EB 42</code></pre>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 98 3F 04 00 A3 F9 70 65
|
||||
0010 | 14 00 00 00 F1 8E 7E BE 33 5E 99 59 32 B9 7A B0
|
||||
0020 | F4 99 8B 49 79 A9 8A B8</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>req_pq_multi#be7e8ef1 nonce:int128 = ResPQ;</code></pre>
|
||||
<table class="table">
|
||||
|
@ -77,7 +77,7 @@
|
|||
<tr>
|
||||
<td>message_id</td>
|
||||
<td>8, 8</td>
|
||||
<td><code>745F020046E57065</code></td>
|
||||
<td><code>983F0400A3F97065</code></td>
|
||||
<td>Message ID generated as specified <a href="/mtproto/description#message-identifier-msg-id">here »</a> (unixtime() << 32) + (N*4)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -95,7 +95,7 @@
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>24, 16</td>
|
||||
<td><code>0A95A30DD1754ABF283BCE96F3B3EB42</code></td>
|
||||
<td><code>335E995932B97AB0F4998B4979A98AB8</code></td>
|
||||
<td>Random number</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -104,11 +104,11 @@
|
|||
<h5><a class="anchor" href="#2-server-sends-response-of-the-form" id="2-server-sends-response-of-the-form" name="2-server-sends-response-of-the-form"><i class="anchor-icon"></i></a>2) Server sends response of the form</h5>
|
||||
<!-- start resPQ -->
|
||||
<p>Received payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 01 94 7D A2 46 E5 70 65
|
||||
0010 | 54 00 00 00 63 24 16 05 0A 95 A3 0D D1 75 4A BF
|
||||
0020 | 28 3B CE 96 F3 B3 EB 42 14 B7 7C B9 1E FB E6 D3
|
||||
0030 | F5 CF 06 3E 93 8C 11 B7 08 1C 18 DE 9B 76 56 E9
|
||||
0040 | AD 00 00 00 15 C4 B5 1C 03 00 00 00 A5 B7 F7 09
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 01 B4 69 C6 A3 F9 70 65
|
||||
0010 | 94 00 00 00 63 24 16 05 33 5E 99 59 32 B9 7A B0
|
||||
0020 | F4 99 8B 49 79 A9 8A B8 1D 2A 19 43 39 EB D2 05
|
||||
0030 | 03 B5 CB 18 9E DE 22 74 08 16 08 6A F8 56 4E 3E
|
||||
0040 | 97 00 00 00 15 C4 B5 1C 03 00 00 00 A5 B7 F7 09
|
||||
0050 | 35 5F C3 0B 21 6B E8 6C 02 2B B4 C3 85 FD 64 DE
|
||||
0060 | 85 1D 9D D0</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
|
@ -132,13 +132,13 @@
|
|||
<tr>
|
||||
<td>message_id</td>
|
||||
<td>8, 8</td>
|
||||
<td><code>01947DA246E57065</code></td>
|
||||
<td><code>01B469C6A3F97065</code></td>
|
||||
<td>Message ID generated as specified <a href="/mtproto/description#message-identifier-msg-id">here »</a> (unixtime() << 32) + (N*4)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>message_length</td>
|
||||
<td>16, 4</td>
|
||||
<td><code>54000000</code> (84 in decimal)</td>
|
||||
<td><code>94000000</code> (148 in decimal)</td>
|
||||
<td>Message body length</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -150,19 +150,19 @@
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>24, 16</td>
|
||||
<td><code>0A95A30DD1754ABF283BCE96F3B3EB42</code></td>
|
||||
<td><code>335E995932B97AB0F4998B4979A98AB8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>40, 16</td>
|
||||
<td><code>14B77CB91EFBE6D3F5CF063E938C11B7</code></td>
|
||||
<td><code>1D2A194339EBD20503B5CB189EDE2274</code></td>
|
||||
<td>Server-generated random number</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>pq</td>
|
||||
<td>56, 12</td>
|
||||
<td><code>081C18DE9B7656E9AD000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 2024612791789742509</td>
|
||||
<td><code>0816086AF8564E3E97000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1587636483480501911</td>
|
||||
<td>Single-byte prefix denoting length, an 8-byte string, and three bytes of padding</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -208,22 +208,22 @@
|
|||
<h4><a class="anchor" href="#proof-of-work" id="proof-of-work" name="proof-of-work"><i class="anchor-icon"></i></a>Proof of work</h4>
|
||||
<h5><a class="anchor" href="#3-client-decomposes-pq-into-prime-factors-such-that-p-lt-q" id="3-client-decomposes-pq-into-prime-factors-such-that-p-lt-q" name="3-client-decomposes-pq-into-prime-factors-such-that-p-lt-q"><i class="anchor-icon"></i></a>3) Client decomposes pq into prime factors such that p < q.</h5>
|
||||
<!-- start pq -->
|
||||
<pre><code>pq = 2024612791789742509</code></pre>
|
||||
<p>Decompose into 2 prime cofactors <code>p < q</code>: <code>2024612791789742509 = 1071870773 * 1888859033</code></p>
|
||||
<pre><code>p = 1071870773
|
||||
q = 1888859033</code></pre>
|
||||
<pre><code>pq = 1587636483480501911</code></pre>
|
||||
<p>Decompose into 2 prime cofactors <code>p < q</code>: <code>1587636483480501911 = 1073677151 * 1478690761</code></p>
|
||||
<pre><code>p = 1073677151
|
||||
q = 1478690761</code></pre>
|
||||
<!-- end pq -->
|
||||
<h4><a class="anchor" href="#presenting-proof-of-work-server-authentication" id="presenting-proof-of-work-server-authentication" name="presenting-proof-of-work-server-authentication"><i class="anchor-icon"></i></a>Presenting proof of work; Server authentication</h4>
|
||||
<h5><a class="anchor" href="#4-encrypted-data-payload-generation" id="4-encrypted-data-payload-generation" name="4-encrypted-data-payload-generation"><i class="anchor-icon"></i></a>4) <code>encrypted_data</code> payload generation</h5>
|
||||
<p>First of all, generate an <code>encrypted_data</code> payload as follows:</p>
|
||||
<!-- start p_q_inner_data_dc -->
|
||||
<p>Generated payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 95 5F F5 A9 08 1C 18 DE 9B 76 56 E9 AD 00 00 00
|
||||
0010 | 04 3F E3 73 35 00 00 00 04 70 95 B3 99 00 00 00
|
||||
0020 | 0A 95 A3 0D D1 75 4A BF 28 3B CE 96 F3 B3 EB 42
|
||||
0030 | 14 B7 7C B9 1E FB E6 D3 F5 CF 06 3E 93 8C 11 B7
|
||||
0040 | B4 35 80 BF E4 FC 5A 8D 68 30 18 B4 12 26 6D 99
|
||||
0050 | 62 6F 04 7B 3C 57 0B C2 CE E5 69 91 45 E8 78 0B
|
||||
<pre><code>0000 | 95 5F F5 A9 08 16 08 6A F8 56 4E 3E 97 00 00 00
|
||||
0010 | 04 3F FF 03 5F 00 00 00 04 58 23 07 C9 00 00 00
|
||||
0020 | 33 5E 99 59 32 B9 7A B0 F4 99 8B 49 79 A9 8A B8
|
||||
0030 | 1D 2A 19 43 39 EB D2 05 03 B5 CB 18 9E DE 22 74
|
||||
0040 | 16 88 B5 70 21 F1 B7 54 78 B1 AF 42 01 EF 0C 39
|
||||
0050 | B3 A0 08 7D BF DB 4E E9 E8 B3 64 43 6F 91 E0 19
|
||||
0060 | 02 00 00 00</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>p_q_inner_data_dc#a9f55f95 pq:string p:string q:string nonce:int128 server_nonce:int128 new_nonce:int256 dc:int = P_Q_inner_data;</code></pre>
|
||||
|
@ -246,37 +246,37 @@ q = 1888859033</code></pre>
|
|||
<tr>
|
||||
<td>pq</td>
|
||||
<td>4, 12</td>
|
||||
<td><code>081C18DE9B7656E9AD000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 2024612791789742509</td>
|
||||
<td><code>0816086AF8564E3E97000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1587636483480501911</td>
|
||||
<td>Single-byte prefix denoting length, 8-byte string, and three bytes of padding</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>p</td>
|
||||
<td>16, 8</td>
|
||||
<td><code>043FE37335000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1071870773</td>
|
||||
<td><code>043FFF035F000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1073677151</td>
|
||||
<td>First prime cofactor: single-byte prefix denoting length, 4-byte string, and three bytes of padding</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>q</td>
|
||||
<td>24, 8</td>
|
||||
<td><code>047095B399000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1888859033</td>
|
||||
<td><code>04582307C9000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1478690761</td>
|
||||
<td>Second prime cofactor: single-byte prefix denoting length, 4-byte string, and three bytes of padding</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>32, 16</td>
|
||||
<td><code>0A95A30DD1754ABF283BCE96F3B3EB42</code></td>
|
||||
<td><code>335E995932B97AB0F4998B4979A98AB8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>48, 16</td>
|
||||
<td><code>14B77CB91EFBE6D3F5CF063E938C11B7</code></td>
|
||||
<td><code>1D2A194339EBD20503B5CB189EDE2274</code></td>
|
||||
<td>Value received from server in Step 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>new_nonce</td>
|
||||
<td>64, 32</td>
|
||||
<td><code>B43580BFE4FC5A8D683018B412266D99</code> <code>626F047B3C570BC2CEE5699145E8780B</code></td>
|
||||
<td><code>1688B57021F1B75478B1AF4201EF0C39</code> <code>B3A0087DBFDB4EE9E8B364436F91E019</code></td>
|
||||
<td>Client-generated random number</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -291,39 +291,39 @@ q = 1888859033</code></pre>
|
|||
<p>The serialization of <em>P_Q_inner_data</em> produces <strong>data</strong>, which is used to generate <strong>encrypted_data</strong> as specified in <a href="/mtproto/auth_key">step 4.1</a>.<br>
|
||||
These are the inputs to the algorithm specified in <a href="/mtproto/auth_key">step 4.1</a>:</p>
|
||||
<!-- start p_q_inner_data_input -->
|
||||
<pre><code>data = 955FF5A9081C18DE9B7656E9AD000000043FE37335000000047095B3990000000A95A30DD1754ABF283BCE96F3B3EB4214B77CB91EFBE6D3F5CF063E938C11B7B43580BFE4FC5A8D683018B412266D99626F047B3C570BC2CEE5699145E8780B02000000
|
||||
random_padding_bytes = DEF43E9633F3C629CCDB795626418EC6E43810811311F9D038ACCE99AF060EDDF11A098AD4758A294E5366B5E0589387F4696C92E1C4A57F5F30877C7C3C1444DBE0E4F3AA1A0094AA605D830A6A225ED7EB9702729C54A29D11F333</code></pre>
|
||||
<pre><code>data = 955FF5A90816086AF8564E3E97000000043FFF035F00000004582307C9000000335E995932B97AB0F4998B4979A98AB81D2A194339EBD20503B5CB189EDE22741688B57021F1B75478B1AF4201EF0C39B3A0087DBFDB4EE9E8B364436F91E01902000000
|
||||
random_padding_bytes = 03C3525F2E8094596546A1360C6AB351EEACC6530CB815E42FCAFB26E832F1F80339BCA128975C48984B2FAF137E4F0E1AD265155E78E2886FDD0FDBB5E96E2A6314725020837EBF1CDE644D45513BE477569CBA041DE7779AD5B536</code></pre>
|
||||
<!-- end p_q_inner_data_input -->
|
||||
<p>And this is the output:</p>
|
||||
<!-- start p_q_inner_data_output -->
|
||||
<pre><code>encrypted_data = 211A7F48B2502585FDD2FF0908E06F547EC7A78373635DD8EBEF7D4791133E7BCD5380BF1324F78544718922D6981E98B494CA72DA974B0AFFEAF3703FF6B52B16747175F69FF81DC83AA37F2730915FF2AD834A575768080B921DAE23E0B5A7F07E7B1D605EB991473B702BBCF184A8F9D757F85C215195DCF089422572FEF35B9375F449EDDE40E487C6974AF39699ACB7569C311871003E921683360FF316E5792ABEC630D64FA5D684831801A329EA1A192ED520776DC55D918E454B12CAE4D9D67300B5A1D743DA9DF32AD9E61B051BB11CAB7B5AE8A680B757AD64F5529A1BFC85B0EC08872E4BD3A7FCF5239610423EDBEF1BFFFA53FC1C105ED89479</code></pre>
|
||||
<pre><code>encrypted_data = 2729BF829FFFB5D06241439874A5AE5CE5F7F6E22DBD98E60566E2AEA4B43793BAF98CD5A35FAF3C9EF5BD9D9B2DFF7BD3B58C08EE9D6F382260822C2B45C918E03B51A855FD16F29B81476B56F36507EE92DFF1603BAFA739A8109F5C0244471BAFD3F62DA29804E346A031DC0BEAC6D66300677CCF6ECD76D26B42A3029B079BA94693E16A04EB9CA7507A0423CA26DB77212970D41B76904935E79AC7458A7BC8F0262ED81292BAA715C69A86F255EA22EE777E243866E5D61BE5921DA6369EF6417450829278AA020E5B1D2182B5BFB9A1E9ED8F526109FCAE381B684AD0936371E09088FBF399AF804FC7A45191EFCE78EE75F8B615F6A60D53D1D15275</code></pre>
|
||||
<!-- end p_q_inner_data_output -->
|
||||
<p>The length of the final string is 256 bytes.</p>
|
||||
<h5><a class="anchor" href="#5-send-req-dh-params-query-with-generated-encrypted-data" id="5-send-req-dh-params-query-with-generated-encrypted-data" name="5-send-req-dh-params-query-with-generated-encrypted-data"><i class="anchor-icon"></i></a>5) Send req_DH_params query with generated <code>encrypted_data</code></h5>
|
||||
<!-- start req_DH_params -->
|
||||
<p>Sent payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 44 A8 0B 00 46 E5 70 65
|
||||
0010 | 40 01 00 00 BE E4 12 D7 0A 95 A3 0D D1 75 4A BF
|
||||
0020 | 28 3B CE 96 F3 B3 EB 42 14 B7 7C B9 1E FB E6 D3
|
||||
0030 | F5 CF 06 3E 93 8C 11 B7 04 3F E3 73 35 00 00 00
|
||||
0040 | 04 70 95 B3 99 00 00 00 85 FD 64 DE 85 1D 9D D0
|
||||
0050 | FE 00 01 00 21 1A 7F 48 B2 50 25 85 FD D2 FF 09
|
||||
0060 | 08 E0 6F 54 7E C7 A7 83 73 63 5D D8 EB EF 7D 47
|
||||
0070 | 91 13 3E 7B CD 53 80 BF 13 24 F7 85 44 71 89 22
|
||||
0080 | D6 98 1E 98 B4 94 CA 72 DA 97 4B 0A FF EA F3 70
|
||||
0090 | 3F F6 B5 2B 16 74 71 75 F6 9F F8 1D C8 3A A3 7F
|
||||
00A0 | 27 30 91 5F F2 AD 83 4A 57 57 68 08 0B 92 1D AE
|
||||
00B0 | 23 E0 B5 A7 F0 7E 7B 1D 60 5E B9 91 47 3B 70 2B
|
||||
00C0 | BC F1 84 A8 F9 D7 57 F8 5C 21 51 95 DC F0 89 42
|
||||
00D0 | 25 72 FE F3 5B 93 75 F4 49 ED DE 40 E4 87 C6 97
|
||||
00E0 | 4A F3 96 99 AC B7 56 9C 31 18 71 00 3E 92 16 83
|
||||
00F0 | 36 0F F3 16 E5 79 2A BE C6 30 D6 4F A5 D6 84 83
|
||||
0100 | 18 01 A3 29 EA 1A 19 2E D5 20 77 6D C5 5D 91 8E
|
||||
0110 | 45 4B 12 CA E4 D9 D6 73 00 B5 A1 D7 43 DA 9D F3
|
||||
0120 | 2A D9 E6 1B 05 1B B1 1C AB 7B 5A E8 A6 80 B7 57
|
||||
0130 | AD 64 F5 52 9A 1B FC 85 B0 EC 08 87 2E 4B D3 A7
|
||||
0140 | FC F5 23 96 10 42 3E DB EF 1B FF FA 53 FC 1C 10
|
||||
0150 | 5E D8 94 79</code></pre>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 9C 3F 04 00 A3 F9 70 65
|
||||
0010 | 40 01 00 00 BE E4 12 D7 33 5E 99 59 32 B9 7A B0
|
||||
0020 | F4 99 8B 49 79 A9 8A B8 1D 2A 19 43 39 EB D2 05
|
||||
0030 | 03 B5 CB 18 9E DE 22 74 04 3F FF 03 5F 00 00 00
|
||||
0040 | 04 58 23 07 C9 00 00 00 85 FD 64 DE 85 1D 9D D0
|
||||
0050 | FE 00 01 00 27 29 BF 82 9F FF B5 D0 62 41 43 98
|
||||
0060 | 74 A5 AE 5C E5 F7 F6 E2 2D BD 98 E6 05 66 E2 AE
|
||||
0070 | A4 B4 37 93 BA F9 8C D5 A3 5F AF 3C 9E F5 BD 9D
|
||||
0080 | 9B 2D FF 7B D3 B5 8C 08 EE 9D 6F 38 22 60 82 2C
|
||||
0090 | 2B 45 C9 18 E0 3B 51 A8 55 FD 16 F2 9B 81 47 6B
|
||||
00A0 | 56 F3 65 07 EE 92 DF F1 60 3B AF A7 39 A8 10 9F
|
||||
00B0 | 5C 02 44 47 1B AF D3 F6 2D A2 98 04 E3 46 A0 31
|
||||
00C0 | DC 0B EA C6 D6 63 00 67 7C CF 6E CD 76 D2 6B 42
|
||||
00D0 | A3 02 9B 07 9B A9 46 93 E1 6A 04 EB 9C A7 50 7A
|
||||
00E0 | 04 23 CA 26 DB 77 21 29 70 D4 1B 76 90 49 35 E7
|
||||
00F0 | 9A C7 45 8A 7B C8 F0 26 2E D8 12 92 BA A7 15 C6
|
||||
0100 | 9A 86 F2 55 EA 22 EE 77 7E 24 38 66 E5 D6 1B E5
|
||||
0110 | 92 1D A6 36 9E F6 41 74 50 82 92 78 AA 02 0E 5B
|
||||
0120 | 1D 21 82 B5 BF B9 A1 E9 ED 8F 52 61 09 FC AE 38
|
||||
0130 | 1B 68 4A D0 93 63 71 E0 90 88 FB F3 99 AF 80 4F
|
||||
0140 | C7 A4 51 91 EF CE 78 EE 75 F8 B6 15 F6 A6 0D 53
|
||||
0150 | D1 D1 52 75</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>req_DH_params#d712e4be nonce:int128 server_nonce:int128 p:string q:string public_key_fingerprint:long encrypted_data:string = Server_DH_Params;</code></pre>
|
||||
<table class="table">
|
||||
|
@ -345,7 +345,7 @@ random_padding_bytes = DEF43E9633F3C629CCDB795626418EC6E43810811311F9D038ACCE99A
|
|||
<tr>
|
||||
<td>message_id</td>
|
||||
<td>8, 8</td>
|
||||
<td><code>44A80B0046E57065</code></td>
|
||||
<td><code>9C3F0400A3F97065</code></td>
|
||||
<td>Message ID generated as specified <a href="/mtproto/description#message-identifier-msg-id">here »</a> (unixtime() << 32) + (N*4)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -363,25 +363,25 @@ random_padding_bytes = DEF43E9633F3C629CCDB795626418EC6E43810811311F9D038ACCE99A
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>24, 16</td>
|
||||
<td><code>0A95A30DD1754ABF283BCE96F3B3EB42</code></td>
|
||||
<td><code>335E995932B97AB0F4998B4979A98AB8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>40, 16</td>
|
||||
<td><code>14B77CB91EFBE6D3F5CF063E938C11B7</code></td>
|
||||
<td><code>1D2A194339EBD20503B5CB189EDE2274</code></td>
|
||||
<td>Value received from server in Step 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>p</td>
|
||||
<td>56, 8</td>
|
||||
<td><code>043FE37335000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1071870773</td>
|
||||
<td><code>043FFF035F000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1073677151</td>
|
||||
<td>First prime cofactor: single-byte prefix denoting length, 4-byte string, and three bytes of padding</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>q</td>
|
||||
<td>64, 8</td>
|
||||
<td><code>047095B399000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1888859033</td>
|
||||
<td><code>04582307C9000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1478690761</td>
|
||||
<td>Second prime cofactor: single-byte prefix denoting length, 4-byte string, and three bytes of padding</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -393,7 +393,7 @@ random_padding_bytes = DEF43E9633F3C629CCDB795626418EC6E43810811311F9D038ACCE99A
|
|||
<tr>
|
||||
<td>encrypted_data</td>
|
||||
<td>80, 260</td>
|
||||
<td><code>FE000100211A7F48B2502585FDD2FF09</code> <code>08E06F547EC7A78373635DD8EBEF7D47</code> <code>91133E7BCD5380BF1324F78544718922</code> <code>D6981E98B494CA72DA974B0AFFEAF370</code> <code>3FF6B52B16747175F69FF81DC83AA37F</code> <code>2730915FF2AD834A575768080B921DAE</code> <code>23E0B5A7F07E7B1D605EB991473B702B</code> <code>BCF184A8F9D757F85C215195DCF08942</code> <code>2572FEF35B9375F449EDDE40E487C697</code> <code>4AF39699ACB7569C311871003E921683</code> <code>360FF316E5792ABEC630D64FA5D68483</code> <code>1801A329EA1A192ED520776DC55D918E</code> <code>454B12CAE4D9D67300B5A1D743DA9DF3</code> <code>2AD9E61B051BB11CAB7B5AE8A680B757</code> <code>AD64F5529A1BFC85B0EC08872E4BD3A7</code> <code>FCF5239610423EDBEF1BFFFA53FC1C10</code><br> <code>5ED89479</code></td>
|
||||
<td><code>FE0001002729BF829FFFB5D062414398</code> <code>74A5AE5CE5F7F6E22DBD98E60566E2AE</code> <code>A4B43793BAF98CD5A35FAF3C9EF5BD9D</code> <code>9B2DFF7BD3B58C08EE9D6F382260822C</code> <code>2B45C918E03B51A855FD16F29B81476B</code> <code>56F36507EE92DFF1603BAFA739A8109F</code> <code>5C0244471BAFD3F62DA29804E346A031</code> <code>DC0BEAC6D66300677CCF6ECD76D26B42</code> <code>A3029B079BA94693E16A04EB9CA7507A</code> <code>0423CA26DB77212970D41B76904935E7</code> <code>9AC7458A7BC8F0262ED81292BAA715C6</code> <code>9A86F255EA22EE777E243866E5D61BE5</code> <code>921DA6369EF6417450829278AA020E5B</code> <code>1D2182B5BFB9A1E9ED8F526109FCAE38</code> <code>1B684AD0936371E09088FBF399AF804F</code> <code>C7A45191EFCE78EE75F8B615F6A60D53</code><br> <code>D1D15275</code></td>
|
||||
<td>Value generated above</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -402,47 +402,47 @@ random_padding_bytes = DEF43E9633F3C629CCDB795626418EC6E43810811311F9D038ACCE99A
|
|||
<h5><a class="anchor" href="#6-server-responds-with" id="6-server-responds-with" name="6-server-responds-with"><i class="anchor-icon"></i></a>6) Server responds with:</h5>
|
||||
<!-- start server_DH_params_ok -->
|
||||
<p>Received payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 01 08 1B 63 47 E5 70 65
|
||||
0010 | C0 02 00 00 5C 07 E8 D0 0A 95 A3 0D D1 75 4A BF
|
||||
0020 | 28 3B CE 96 F3 B3 EB 42 14 B7 7C B9 1E FB E6 D3
|
||||
0030 | F5 CF 06 3E 93 8C 11 B7 FE 50 02 00 7C E4 65 BC
|
||||
0040 | 91 5E B0 CD 93 47 2D 2C 20 35 63 D7 64 25 D5 AC
|
||||
0050 | B9 FB 41 50 17 47 DD 7F B0 CC BB 12 97 AE 28 12
|
||||
0060 | D1 5D 3A 67 E0 AF DD D7 D7 78 35 2D AD 8C 74 82
|
||||
0070 | 3A 39 A5 66 94 A5 31 1A 04 1B C9 6F 52 49 B9 BC
|
||||
0080 | 63 31 F0 FF 90 02 13 C9 BE 6C 88 D2 B1 61 94 CA
|
||||
0090 | CD A2 A1 A7 30 EE ED 93 77 42 D4 7A CB 3F 6F 15
|
||||
00A0 | 74 75 ED 09 3A 1D 50 98 F7 9E ED C5 14 61 AB EC
|
||||
00B0 | BA 88 D1 19 A1 E7 BA F7 C2 59 3E DE CE 66 69 38
|
||||
00C0 | 8F 80 D3 F5 C2 99 C3 90 D3 AD E1 3F E4 22 23 1B
|
||||
00D0 | 71 6D 3E 1C 69 91 5B 70 17 CD 6E 14 A8 5B 86 58
|
||||
00E0 | C4 34 4A 23 8E 5F C8 73 EE 64 CE 68 D6 FB AF 07
|
||||
00F0 | C8 2D E0 EC E4 D8 9C 9E 26 68 B6 FA B1 BA D5 A2
|
||||
0100 | 63 DD 6D 17 14 94 6B C8 42 7A 8F 82 A1 D4 61 D7
|
||||
0110 | 9E 78 BE 3A 22 0D BF 54 84 3E B8 E2 27 80 E5 34
|
||||
0120 | C7 67 87 18 E9 BA 00 19 A9 D7 06 B5 E9 04 A8 C6
|
||||
0130 | 5C 57 25 67 D4 7F CB 94 9F 93 B4 FA E7 AB 5D 6E
|
||||
0140 | 6B 91 DE E1 7C BB 40 20 40 92 23 C8 67 FD 77 B3
|
||||
0150 | 36 59 96 49 1B 26 6A 9C FC 9D BA 86 5D 8E 20 60
|
||||
0160 | 37 0F AF 5C 66 DD 7F F9 8C BE E4 EB 76 CB C6 63
|
||||
0170 | 80 9B 41 36 82 BE FC 21 03 22 05 E0 82 23 50 AA
|
||||
0180 | 06 69 0E 89 C0 66 1F 3F B5 88 A6 18 61 48 48 12
|
||||
0190 | A9 96 B8 24 78 71 DF 17 24 EE 98 DA D1 3F 3F AC
|
||||
01A0 | D6 FB 1A 28 56 01 B0 92 61 8A BB 19 0F 2B 8D 8A
|
||||
01B0 | 40 52 68 5B 6F 4A 3C DE F0 01 0F BE 49 97 52 6D
|
||||
01C0 | 50 B9 14 5F 05 0A 0C 02 54 28 BA 27 4B 85 55 8E
|
||||
01D0 | 10 CE 85 6C 61 89 04 2E A8 D1 E8 22 64 FB F1 06
|
||||
01E0 | C2 5D F5 94 08 CE 45 B9 AE F2 A9 E4 FA 23 84 FE
|
||||
01F0 | 48 85 EB F7 4E 44 D1 7B 2E 3B 58 B4 6B F6 AB 02
|
||||
0200 | E8 9F 5A 56 F8 FB 54 89 C6 11 AA 12 42 49 7B 4D
|
||||
0210 | 13 AD DD 3D 30 C3 8F FF A1 AA 62 FC 03 50 28 8D
|
||||
0220 | 29 93 14 A3 48 BB 53 17 AD F6 59 1D A5 02 5F CC
|
||||
0230 | A3 5C FA A0 D4 BF B4 0A 9B 31 0A BB 10 E8 0B 97
|
||||
0240 | 4D AC 3C 3A 62 87 C2 47 1B D9 7D 68 D2 B7 46 9D
|
||||
0250 | 02 85 E8 1E 47 3B 46 0B C3 53 8E 2A E5 25 51 42
|
||||
0260 | EA 8D 13 A7 64 C7 40 F9 3C 5A 5F A6 4E 9C 0A F0
|
||||
0270 | A4 2D 7C 27 DF FC 86 A2 92 57 B8 6E E4 D8 CC 77
|
||||
0280 | 90 E0 E8 03 F3 48 49 6F A1 AA BB B0</code></pre>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 01 74 0C 57 A4 F9 70 65
|
||||
0010 | C8 02 00 00 5C 07 E8 D0 33 5E 99 59 32 B9 7A B0
|
||||
0020 | F4 99 8B 49 79 A9 8A B8 1D 2A 19 43 39 EB D2 05
|
||||
0030 | 03 B5 CB 18 9E DE 22 74 FE 50 02 00 4B A8 5D EB
|
||||
0040 | AA D7 29 5D 89 25 71 4C FD A1 C2 6B F6 96 07 54
|
||||
0050 | A4 CF AB 54 B5 25 C4 ED 4C 61 85 67 E5 47 47 2D
|
||||
0060 | 60 B6 F2 E7 91 62 42 A3 E6 B6 83 A2 A9 FF EB A0
|
||||
0070 | 61 00 F5 B3 C2 A8 FE 0B EF A3 E4 CF 63 F3 7D 91
|
||||
0080 | 1F 80 F1 FF 95 CD 1D 2D 0A 1A EF B4 F2 69 97 B0
|
||||
0090 | 92 80 C9 54 01 A6 AE 10 35 16 76 32 06 12 22 8B
|
||||
00A0 | 03 62 03 E0 64 4A BA 17 87 40 96 ED 5A 6A 0D DB
|
||||
00B0 | AA 42 0A C6 D0 D4 43 16 B7 9A 8A D4 A0 F3 AD 8F
|
||||
00C0 | E5 8A 8D 39 B1 3A 91 E5 A4 22 BC 1D F1 06 D7 AF
|
||||
00D0 | D6 A4 58 0A 26 46 3F 79 33 3D A8 24 79 87 79 03
|
||||
00E0 | 63 31 11 81 03 AB AC CB 76 8D A5 1C AF FA B7 AD
|
||||
00F0 | 96 6E 79 FA C3 95 F1 6F A2 C7 5F A5 57 75 E7 8F
|
||||
0100 | CF 2C 37 C8 1A 5A 6D D7 6B 27 91 80 38 F7 F9 6A
|
||||
0110 | 38 20 C9 51 78 59 6F 95 86 D5 00 43 EC 98 CE 01
|
||||
0120 | F7 7F E2 8D 7F 58 70 16 A9 51 E6 33 C9 2D 3F FE
|
||||
0130 | D7 61 EE A2 68 F2 40 88 F7 E9 43 48 09 D0 4D 58
|
||||
0140 | 64 7D 5A AA B1 DB 10 F1 B7 0E 06 9D 9F DB 1F DB
|
||||
0150 | 1B 4A 99 3F CA 5E 40 C3 E4 68 28 9C 63 F4 7E 75
|
||||
0160 | 7C 30 63 52 12 7B D7 56 EF E0 F5 C0 6C DC 5B 0E
|
||||
0170 | C0 C4 BD 1A B7 13 E5 FA B4 3B 0A EA 24 8F 0F DB
|
||||
0180 | 5F 79 D9 90 A4 37 32 DE 0B 13 A9 7B 4D C1 D5 B7
|
||||
0190 | EF 82 82 F0 32 D0 1D 03 FD B1 41 41 FF E4 E5 54
|
||||
01A0 | 5E EA 5C 26 CF D3 23 4A BC C0 7D 0A F3 18 76 90
|
||||
01B0 | D9 B1 E7 8D 7F E0 E2 75 CF 64 EB 43 6D E7 E6 7C
|
||||
01C0 | EE C5 63 BD 9B 1B 60 4E CD AE 34 60 EC 34 DD A2
|
||||
01D0 | 4F 15 BE 19 11 BA 47 58 17 31 39 68 FA 9F D7 3D
|
||||
01E0 | 4A A6 C0 E1 50 4C 77 6A 84 99 7A 64 85 D7 55 4F
|
||||
01F0 | 90 3C CB 73 B6 12 2A 5D 22 82 72 8D 75 7E 3B B1
|
||||
0200 | B1 34 2C AF EC B6 F2 AF B3 3A F6 C2 D8 49 D6 91
|
||||
0210 | F9 2F 9E 06 F1 F0 1F A2 A4 6D 52 A6 AA 96 F4 E3
|
||||
0220 | 7B 1E DF EB 5B CE C6 E6 3B 5B 0C 34 BE 19 1A AF
|
||||
0230 | 20 57 08 AD 29 55 28 E5 22 AD D2 39 2B 8E 98 66
|
||||
0240 | 34 19 A3 87 1E 0A F5 72 98 46 5A 19 33 14 EC D8
|
||||
0250 | 87 02 7B 37 91 2C 7D 9D 72 4A A1 9B AF 6D 56 CB
|
||||
0260 | 66 1C 51 47 D1 A8 B0 73 0A DE 8F B9 AA C8 18 D2
|
||||
0270 | 4B E8 C8 34 D2 1F 47 7F 46 04 56 A3 EE 3C F3 EA
|
||||
0280 | FC 5E 58 E9 E2 23 95 19 58 70 41 68</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>server_DH_params_ok#d0e8075c nonce:int128 server_nonce:int128 encrypted_answer:string = Server_DH_Params;</code></pre>
|
||||
<table class="table">
|
||||
|
@ -464,13 +464,13 @@ random_padding_bytes = DEF43E9633F3C629CCDB795626418EC6E43810811311F9D038ACCE99A
|
|||
<tr>
|
||||
<td>message_id</td>
|
||||
<td>8, 8</td>
|
||||
<td><code>01081B6347E57065</code></td>
|
||||
<td><code>01740C57A4F97065</code></td>
|
||||
<td>Message ID generated as specified <a href="/mtproto/description#message-identifier-msg-id">here »</a> (unixtime() << 32) + (N*4)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>message_length</td>
|
||||
<td>16, 4</td>
|
||||
<td><code>C0020000</code> (704 in decimal)</td>
|
||||
<td><code>C8020000</code> (712 in decimal)</td>
|
||||
<td>Message body length</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -482,19 +482,19 @@ random_padding_bytes = DEF43E9633F3C629CCDB795626418EC6E43810811311F9D038ACCE99A
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>24, 16</td>
|
||||
<td><code>0A95A30DD1754ABF283BCE96F3B3EB42</code></td>
|
||||
<td><code>335E995932B97AB0F4998B4979A98AB8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>40, 16</td>
|
||||
<td><code>14B77CB91EFBE6D3F5CF063E938C11B7</code></td>
|
||||
<td><code>1D2A194339EBD20503B5CB189EDE2274</code></td>
|
||||
<td>Value received from server in Step 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>encrypted_answer</td>
|
||||
<td>56, 596</td>
|
||||
<td><code>FE5002007CE465BC915EB0CD93472D2C</code> <code>203563D76425D5ACB9FB41501747DD7F</code> <code>B0CCBB1297AE2812D15D3A67E0AFDDD7</code> <code>D778352DAD8C74823A39A56694A5311A</code> <code>041BC96F5249B9BC6331F0FF900213C9</code> <code>BE6C88D2B16194CACDA2A1A730EEED93</code> <code>7742D47ACB3F6F157475ED093A1D5098</code> <code>F79EEDC51461ABECBA88D119A1E7BAF7</code> <code>C2593EDECE6669388F80D3F5C299C390</code> <code>D3ADE13FE422231B716D3E1C69915B70</code> <code>17CD6E14A85B8658C4344A238E5FC873</code> <code>EE64CE68D6FBAF07C82DE0ECE4D89C9E</code> <code>2668B6FAB1BAD5A263DD6D1714946BC8</code> <code>427A8F82A1D461D79E78BE3A220DBF54</code> <code>843EB8E22780E534C7678718E9BA0019</code> <code>A9D706B5E904A8C65C572567D47FCB94</code> <code>9F93B4FAE7AB5D6E6B91DEE17CBB4020</code> <code>409223C867FD77B3365996491B266A9C</code> <code>FC9DBA865D8E2060370FAF5C66DD7FF9</code> <code>8CBEE4EB76CBC663809B413682BEFC21</code> <code>032205E0822350AA06690E89C0661F3F</code> <code>B588A61861484812A996B8247871DF17</code> <code>24EE98DAD13F3FACD6FB1A285601B092</code> <code>618ABB190F2B8D8A4052685B6F4A3CDE</code> <code>F0010FBE4997526D50B9145F050A0C02</code> <code>5428BA274B85558E10CE856C6189042E</code> <code>A8D1E82264FBF106C25DF59408CE45B9</code> <code>AEF2A9E4FA2384FE4885EBF74E44D17B</code> <code>2E3B58B46BF6AB02E89F5A56F8FB5489</code> <code>C611AA1242497B4D13ADDD3D30C38FFF</code> <code>A1AA62FC0350288D299314A348BB5317</code> <code>ADF6591DA5025FCCA35CFAA0D4BFB40A</code> <code>9B310ABB10E80B974DAC3C3A6287C247</code> <code>1BD97D68D2B7469D0285E81E473B460B</code> <code>C3538E2AE5255142EA8D13A764C740F9</code> <code>3C5A5FA64E9C0AF0A42D7C27DFFC86A2</code> <code>9257B86EE4D8CC7790E0E803F348496F</code><br> <code>A1AABBB0</code></td>
|
||||
<td><code>FE5002004BA85DEBAAD7295D8925714C</code> <code>FDA1C26BF6960754A4CFAB54B525C4ED</code> <code>4C618567E547472D60B6F2E7916242A3</code> <code>E6B683A2A9FFEBA06100F5B3C2A8FE0B</code> <code>EFA3E4CF63F37D911F80F1FF95CD1D2D</code> <code>0A1AEFB4F26997B09280C95401A6AE10</code> <code>351676320612228B036203E0644ABA17</code> <code>874096ED5A6A0DDBAA420AC6D0D44316</code> <code>B79A8AD4A0F3AD8FE58A8D39B13A91E5</code> <code>A422BC1DF106D7AFD6A4580A26463F79</code> <code>333DA824798779036331118103ABACCB</code> <code>768DA51CAFFAB7AD966E79FAC395F16F</code> <code>A2C75FA55775E78FCF2C37C81A5A6DD7</code> <code>6B27918038F7F96A3820C95178596F95</code> <code>86D50043EC98CE01F77FE28D7F587016</code> <code>A951E633C92D3FFED761EEA268F24088</code> <code>F7E9434809D04D58647D5AAAB1DB10F1</code> <code>B70E069D9FDB1FDB1B4A993FCA5E40C3</code> <code>E468289C63F47E757C306352127BD756</code> <code>EFE0F5C06CDC5B0EC0C4BD1AB713E5FA</code> <code>B43B0AEA248F0FDB5F79D990A43732DE</code> <code>0B13A97B4DC1D5B7EF8282F032D01D03</code> <code>FDB14141FFE4E5545EEA5C26CFD3234A</code> <code>BCC07D0AF3187690D9B1E78D7FE0E275</code> <code>CF64EB436DE7E67CEEC563BD9B1B604E</code> <code>CDAE3460EC34DDA24F15BE1911BA4758</code> <code>17313968FA9FD73D4AA6C0E1504C776A</code> <code>84997A6485D7554F903CCB73B6122A5D</code> <code>2282728D757E3BB1B1342CAFECB6F2AF</code> <code>B33AF6C2D849D691F92F9E06F1F01FA2</code> <code>A46D52A6AA96F4E37B1EDFEB5BCEC6E6</code> <code>3B5B0C34BE191AAF205708AD295528E5</code> <code>22ADD2392B8E98663419A3871E0AF572</code> <code>98465A193314ECD887027B37912C7D9D</code> <code>724AA19BAF6D56CB661C5147D1A8B073</code> <code>0ADE8FB9AAC818D24BE8C834D21F477F</code> <code>460456A3EE3CF3EAFC5E58E9E2239519</code><br> <code>58704168</code></td>
|
||||
<td>See below</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -502,20 +502,20 @@ random_padding_bytes = DEF43E9633F3C629CCDB795626418EC6E43810811311F9D038ACCE99A
|
|||
<!-- end server_DH_params_ok -->
|
||||
<p>Decrypt <code>encrypted_answer</code> using the reverse of the process specified in <a href="/mtproto/auth_key#6-server-responds-with">step 6</a>:</p>
|
||||
<!-- start server_DH_inner_data_input -->
|
||||
<pre><code>encrypted_answer = 7CE465BC915EB0CD93472D2C203563D76425D5ACB9FB41501747DD7FB0CCBB1297AE2812D15D3A67E0AFDDD7D778352DAD8C74823A39A56694A5311A041BC96F5249B9BC6331F0FF900213C9BE6C88D2B16194CACDA2A1A730EEED937742D47ACB3F6F157475ED093A1D5098F79EEDC51461ABECBA88D119A1E7BAF7C2593EDECE6669388F80D3F5C299C390D3ADE13FE422231B716D3E1C69915B7017CD6E14A85B8658C4344A238E5FC873EE64CE68D6FBAF07C82DE0ECE4D89C9E2668B6FAB1BAD5A263DD6D1714946BC8427A8F82A1D461D79E78BE3A220DBF54843EB8E22780E534C7678718E9BA0019A9D706B5E904A8C65C572567D47FCB949F93B4FAE7AB5D6E6B91DEE17CBB4020409223C867FD77B3365996491B266A9CFC9DBA865D8E2060370FAF5C66DD7FF98CBEE4EB76CBC663809B413682BEFC21032205E0822350AA06690E89C0661F3FB588A61861484812A996B8247871DF1724EE98DAD13F3FACD6FB1A285601B092618ABB190F2B8D8A4052685B6F4A3CDEF0010FBE4997526D50B9145F050A0C025428BA274B85558E10CE856C6189042EA8D1E82264FBF106C25DF59408CE45B9AEF2A9E4FA2384FE4885EBF74E44D17B2E3B58B46BF6AB02E89F5A56F8FB5489C611AA1242497B4D13ADDD3D30C38FFFA1AA62FC0350288D299314A348BB5317ADF6591DA5025FCCA35CFAA0D4BFB40A9B310ABB10E80B974DAC3C3A6287C2471BD97D68D2B7469D0285E81E473B460BC3538E2AE5255142EA8D13A764C740F93C5A5FA64E9C0AF0A42D7C27DFFC86A29257B86EE4D8CC7790E0E803F348496FA1AABBB0
|
||||
tmp_aes_key = 2328CFB62740758C72875FFA9F28954B0F484F3F8F08BA1D9777B83D72EAE49F
|
||||
tmp_aes_iv = B245F332C793EA0B889E6B792A56842E15EF79E8ACCA8AA4589FC64DB43580BF</code></pre>
|
||||
<pre><code>encrypted_answer = 4BA85DEBAAD7295D8925714CFDA1C26BF6960754A4CFAB54B525C4ED4C618567E547472D60B6F2E7916242A3E6B683A2A9FFEBA06100F5B3C2A8FE0BEFA3E4CF63F37D911F80F1FF95CD1D2D0A1AEFB4F26997B09280C95401A6AE10351676320612228B036203E0644ABA17874096ED5A6A0DDBAA420AC6D0D44316B79A8AD4A0F3AD8FE58A8D39B13A91E5A422BC1DF106D7AFD6A4580A26463F79333DA824798779036331118103ABACCB768DA51CAFFAB7AD966E79FAC395F16FA2C75FA55775E78FCF2C37C81A5A6DD76B27918038F7F96A3820C95178596F9586D50043EC98CE01F77FE28D7F587016A951E633C92D3FFED761EEA268F24088F7E9434809D04D58647D5AAAB1DB10F1B70E069D9FDB1FDB1B4A993FCA5E40C3E468289C63F47E757C306352127BD756EFE0F5C06CDC5B0EC0C4BD1AB713E5FAB43B0AEA248F0FDB5F79D990A43732DE0B13A97B4DC1D5B7EF8282F032D01D03FDB14141FFE4E5545EEA5C26CFD3234ABCC07D0AF3187690D9B1E78D7FE0E275CF64EB436DE7E67CEEC563BD9B1B604ECDAE3460EC34DDA24F15BE1911BA475817313968FA9FD73D4AA6C0E1504C776A84997A6485D7554F903CCB73B6122A5D2282728D757E3BB1B1342CAFECB6F2AFB33AF6C2D849D691F92F9E06F1F01FA2A46D52A6AA96F4E37B1EDFEB5BCEC6E63B5B0C34BE191AAF205708AD295528E522ADD2392B8E98663419A3871E0AF57298465A193314ECD887027B37912C7D9D724AA19BAF6D56CB661C5147D1A8B0730ADE8FB9AAC818D24BE8C834D21F477F460456A3EE3CF3EAFC5E58E9E223951958704168
|
||||
tmp_aes_key = 9A4E3B9FFC93395AEF3A1A3D980C65B346AD55239764095BCE4CE82EF7D7B188
|
||||
tmp_aes_iv = 080199AE9E1B3CB91C6AECDD853F64F0A82A203CC088FA0F2D8F19D71688B570</code></pre>
|
||||
<!-- end server_DH_inner_data_input -->
|
||||
<p>Yielding:</p>
|
||||
<!-- start server_DH_inner_data_output -->
|
||||
<pre><code>answer_with_hash = 046C206B00FE2C32D4702997F69F6D333230EBD4BA0D89B50A95A30DD1754ABF283BCE96F3B3EB4214B77CB91EFBE6D3F5CF063E938C11B703000000FE000100C71CAEB9C6B1C9048E6C522F70F13F73980D40238E3E21C14934D037563D930F48198A0AA7C14058229493D22530F4DBFA336F6E0AC925139543AED44CCE7C3720FD51F69458705AC68CD4FE6B6B13ABDC9746512969328454F18FAF8C595F642477FE96BB2A941D5BCD1D4AC8CC49880708FA9B378E3C4F3A9060BEE67CF9A4A4A695811051907E162753B56B0F6B410DBA74D8A84B2A14B3144E0EF1284754FD17ED950D5965B4B9DD46582DB1178D169C6BC465B0D6FF9CA3928FEF5B9AE4E418FC15E83EBEA0F87FA9FF5EED70050DED2849F47BF959D956850CE929851F0D8115F635B105EE2E4E15D04B2454BF6F4FADF034B10403119CD8E3B92FCC5BFE000100568755DD212BB5081F78AB938D3E0A63F12D552D0F83FD9794E027AC2590D514CD86BEF1B089E2F78311BB7DA0573C13DF3CE3FE0794F5D6F414D53C8F45F4549251DF16123793B80F11322C5DCE6007E4C62FA7713776BEEEC5DC9E48307495146854F60B3BB7052ABC300C46E57B212E59D6F6C2D2FF704D98888D71CAF958813BED9D916E439AD02A9FA70678454E0C92885E3193FCA553181EE515721688AFAFF9E7527B467B45A0A45A6F3BB0A8616646B6D5B7C71406C3D7AE232E7A5F78B0CDF39A9EC8E3651733A351C6EECA792C58A02C6AC2077714CDB322A50CAD2F28FF307F658DABF2EDA874E65D5A7361F6D779D52F87B08DA77D0D82DAFAE647E5706584CA5D5CFB33E47E
|
||||
answer = BA0D89B50A95A30DD1754ABF283BCE96F3B3EB4214B77CB91EFBE6D3F5CF063E938C11B703000000FE000100C71CAEB9C6B1C9048E6C522F70F13F73980D40238E3E21C14934D037563D930F48198A0AA7C14058229493D22530F4DBFA336F6E0AC925139543AED44CCE7C3720FD51F69458705AC68CD4FE6B6B13ABDC9746512969328454F18FAF8C595F642477FE96BB2A941D5BCD1D4AC8CC49880708FA9B378E3C4F3A9060BEE67CF9A4A4A695811051907E162753B56B0F6B410DBA74D8A84B2A14B3144E0EF1284754FD17ED950D5965B4B9DD46582DB1178D169C6BC465B0D6FF9CA3928FEF5B9AE4E418FC15E83EBEA0F87FA9FF5EED70050DED2849F47BF959D956850CE929851F0D8115F635B105EE2E4E15D04B2454BF6F4FADF034B10403119CD8E3B92FCC5BFE000100568755DD212BB5081F78AB938D3E0A63F12D552D0F83FD9794E027AC2590D514CD86BEF1B089E2F78311BB7DA0573C13DF3CE3FE0794F5D6F414D53C8F45F4549251DF16123793B80F11322C5DCE6007E4C62FA7713776BEEEC5DC9E48307495146854F60B3BB7052ABC300C46E57B212E59D6F6C2D2FF704D98888D71CAF958813BED9D916E439AD02A9FA70678454E0C92885E3193FCA553181EE515721688AFAFF9E7527B467B45A0A45A6F3BB0A8616646B6D5B7C71406C3D7AE232E7A5F78B0CDF39A9EC8E3651733A351C6EECA792C58A02C6AC2077714CDB322A50CAD2F28FF307F658DABF2EDA874E65D5A7361F6D779D52F87B08DA77D0D82DAFAE647E5706584CA5D5CFB33E47E</code></pre>
|
||||
<pre><code>answer_with_hash = 4F41A8F58B280F61F9863375C4A4600B8026DA08BA0D89B5335E995932B97AB0F4998B4979A98AB81D2A194339EBD20503B5CB189EDE227403000000FE000100C71CAEB9C6B1C9048E6C522F70F13F73980D40238E3E21C14934D037563D930F48198A0AA7C14058229493D22530F4DBFA336F6E0AC925139543AED44CCE7C3720FD51F69458705AC68CD4FE6B6B13ABDC9746512969328454F18FAF8C595F642477FE96BB2A941D5BCD1D4AC8CC49880708FA9B378E3C4F3A9060BEE67CF9A4A4A695811051907E162753B56B0F6B410DBA74D8A84B2A14B3144E0EF1284754FD17ED950D5965B4B9DD46582DB1178D169C6BC465B0D6FF9CA3928FEF5B9AE4E418FC15E83EBEA0F87FA9FF5EED70050DED2849F47BF959D956850CE929851F0D8115F635B105EE2E4E15D04B2454BF6F4FADF034B10403119CD8E3B92FCC5BFE00010061DEE10F675855ACEFA2B2CA3A0D3354652CB75AD6A4D7CF83F8C62E667ACCA6F039DBA4E8B692A7441CC327A6E7ECF65ECE1F383DE9AB38A7439AE73EC90B02A824F1D64C9FA19C057875AF619621147B5B05A0DB1B0B27A74070C45E30042D2AA455DFA899DFA163C5E0F42F90C94F5BD2E4F689D42EBD1ABF7AB843DEBA27C14060ABCAF569D5B517444B900B1428C8986E46F4985C30C50CEC973F6C2A91AE8EE830E9F4931E84D237872700E547A2424BFDFA35D897ACDD78B6B137A5FCE31FD5A3228575204798E40CD545D309EB82222F3C9EA9568ABF70A5209CF379AC9B1669D6708938A47161F1FE51C48014183D2354953CC6897175B60AC1F191A4F97065B17BBA6E0D1ADED0
|
||||
answer = BA0D89B5335E995932B97AB0F4998B4979A98AB81D2A194339EBD20503B5CB189EDE227403000000FE000100C71CAEB9C6B1C9048E6C522F70F13F73980D40238E3E21C14934D037563D930F48198A0AA7C14058229493D22530F4DBFA336F6E0AC925139543AED44CCE7C3720FD51F69458705AC68CD4FE6B6B13ABDC9746512969328454F18FAF8C595F642477FE96BB2A941D5BCD1D4AC8CC49880708FA9B378E3C4F3A9060BEE67CF9A4A4A695811051907E162753B56B0F6B410DBA74D8A84B2A14B3144E0EF1284754FD17ED950D5965B4B9DD46582DB1178D169C6BC465B0D6FF9CA3928FEF5B9AE4E418FC15E83EBEA0F87FA9FF5EED70050DED2849F47BF959D956850CE929851F0D8115F635B105EE2E4E15D04B2454BF6F4FADF034B10403119CD8E3B92FCC5BFE00010061DEE10F675855ACEFA2B2CA3A0D3354652CB75AD6A4D7CF83F8C62E667ACCA6F039DBA4E8B692A7441CC327A6E7ECF65ECE1F383DE9AB38A7439AE73EC90B02A824F1D64C9FA19C057875AF619621147B5B05A0DB1B0B27A74070C45E30042D2AA455DFA899DFA163C5E0F42F90C94F5BD2E4F689D42EBD1ABF7AB843DEBA27C14060ABCAF569D5B517444B900B1428C8986E46F4985C30C50CEC973F6C2A91AE8EE830E9F4931E84D237872700E547A2424BFDFA35D897ACDD78B6B137A5FCE31FD5A3228575204798E40CD545D309EB82222F3C9EA9568ABF70A5209CF379AC9B1669D6708938A47161F1FE51C48014183D2354953CC6897175B60AC1F191A4F97065B17BBA6E0D1ADED0</code></pre>
|
||||
<!-- end server_DH_inner_data_output -->
|
||||
<!-- start server_DH_inner_data -->
|
||||
<p>Generated payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | BA 0D 89 B5 0A 95 A3 0D D1 75 4A BF 28 3B CE 96
|
||||
0010 | F3 B3 EB 42 14 B7 7C B9 1E FB E6 D3 F5 CF 06 3E
|
||||
0020 | 93 8C 11 B7 03 00 00 00 FE 00 01 00 C7 1C AE B9
|
||||
<pre><code>0000 | BA 0D 89 B5 33 5E 99 59 32 B9 7A B0 F4 99 8B 49
|
||||
0010 | 79 A9 8A B8 1D 2A 19 43 39 EB D2 05 03 B5 CB 18
|
||||
0020 | 9E DE 22 74 03 00 00 00 FE 00 01 00 C7 1C AE B9
|
||||
0030 | C6 B1 C9 04 8E 6C 52 2F 70 F1 3F 73 98 0D 40 23
|
||||
0040 | 8E 3E 21 C1 49 34 D0 37 56 3D 93 0F 48 19 8A 0A
|
||||
0050 | A7 C1 40 58 22 94 93 D2 25 30 F4 DB FA 33 6F 6E
|
||||
|
@ -532,23 +532,23 @@ answer = BA0D89B50A95A30DD1754ABF283BCE96F3B3EB4214B77CB91EFBE6D3F5CF063E938C11B
|
|||
0100 | F4 7B F9 59 D9 56 85 0C E9 29 85 1F 0D 81 15 F6
|
||||
0110 | 35 B1 05 EE 2E 4E 15 D0 4B 24 54 BF 6F 4F AD F0
|
||||
0120 | 34 B1 04 03 11 9C D8 E3 B9 2F CC 5B FE 00 01 00
|
||||
0130 | 56 87 55 DD 21 2B B5 08 1F 78 AB 93 8D 3E 0A 63
|
||||
0140 | F1 2D 55 2D 0F 83 FD 97 94 E0 27 AC 25 90 D5 14
|
||||
0150 | CD 86 BE F1 B0 89 E2 F7 83 11 BB 7D A0 57 3C 13
|
||||
0160 | DF 3C E3 FE 07 94 F5 D6 F4 14 D5 3C 8F 45 F4 54
|
||||
0170 | 92 51 DF 16 12 37 93 B8 0F 11 32 2C 5D CE 60 07
|
||||
0180 | E4 C6 2F A7 71 37 76 BE EE C5 DC 9E 48 30 74 95
|
||||
0190 | 14 68 54 F6 0B 3B B7 05 2A BC 30 0C 46 E5 7B 21
|
||||
01A0 | 2E 59 D6 F6 C2 D2 FF 70 4D 98 88 8D 71 CA F9 58
|
||||
01B0 | 81 3B ED 9D 91 6E 43 9A D0 2A 9F A7 06 78 45 4E
|
||||
01C0 | 0C 92 88 5E 31 93 FC A5 53 18 1E E5 15 72 16 88
|
||||
01D0 | AF AF F9 E7 52 7B 46 7B 45 A0 A4 5A 6F 3B B0 A8
|
||||
01E0 | 61 66 46 B6 D5 B7 C7 14 06 C3 D7 AE 23 2E 7A 5F
|
||||
01F0 | 78 B0 CD F3 9A 9E C8 E3 65 17 33 A3 51 C6 EE CA
|
||||
0200 | 79 2C 58 A0 2C 6A C2 07 77 14 CD B3 22 A5 0C AD
|
||||
0210 | 2F 28 FF 30 7F 65 8D AB F2 ED A8 74 E6 5D 5A 73
|
||||
0220 | 61 F6 D7 79 D5 2F 87 B0 8D A7 7D 0D 82 DA FA E6
|
||||
0230 | 47 E5 70 65</code></pre>
|
||||
0130 | 61 DE E1 0F 67 58 55 AC EF A2 B2 CA 3A 0D 33 54
|
||||
0140 | 65 2C B7 5A D6 A4 D7 CF 83 F8 C6 2E 66 7A CC A6
|
||||
0150 | F0 39 DB A4 E8 B6 92 A7 44 1C C3 27 A6 E7 EC F6
|
||||
0160 | 5E CE 1F 38 3D E9 AB 38 A7 43 9A E7 3E C9 0B 02
|
||||
0170 | A8 24 F1 D6 4C 9F A1 9C 05 78 75 AF 61 96 21 14
|
||||
0180 | 7B 5B 05 A0 DB 1B 0B 27 A7 40 70 C4 5E 30 04 2D
|
||||
0190 | 2A A4 55 DF A8 99 DF A1 63 C5 E0 F4 2F 90 C9 4F
|
||||
01A0 | 5B D2 E4 F6 89 D4 2E BD 1A BF 7A B8 43 DE BA 27
|
||||
01B0 | C1 40 60 AB CA F5 69 D5 B5 17 44 4B 90 0B 14 28
|
||||
01C0 | C8 98 6E 46 F4 98 5C 30 C5 0C EC 97 3F 6C 2A 91
|
||||
01D0 | AE 8E E8 30 E9 F4 93 1E 84 D2 37 87 27 00 E5 47
|
||||
01E0 | A2 42 4B FD FA 35 D8 97 AC DD 78 B6 B1 37 A5 FC
|
||||
01F0 | E3 1F D5 A3 22 85 75 20 47 98 E4 0C D5 45 D3 09
|
||||
0200 | EB 82 22 2F 3C 9E A9 56 8A BF 70 A5 20 9C F3 79
|
||||
0210 | AC 9B 16 69 D6 70 89 38 A4 71 61 F1 FE 51 C4 80
|
||||
0220 | 14 18 3D 23 54 95 3C C6 89 71 75 B6 0A C1 F1 91
|
||||
0230 | A4 F9 70 65</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>server_DH_inner_data#b5890dba nonce:int128 server_nonce:int128 g:int dh_prime:string g_a:string server_time:int = Server_DH_inner_data;</code></pre>
|
||||
<table class="table">
|
||||
|
@ -570,13 +570,13 @@ answer = BA0D89B50A95A30DD1754ABF283BCE96F3B3EB4214B77CB91EFBE6D3F5CF063E938C11B
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>4, 16</td>
|
||||
<td><code>0A95A30DD1754ABF283BCE96F3B3EB42</code></td>
|
||||
<td><code>335E995932B97AB0F4998B4979A98AB8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>20, 16</td>
|
||||
<td><code>14B77CB91EFBE6D3F5CF063E938C11B7</code></td>
|
||||
<td><code>1D2A194339EBD20503B5CB189EDE2274</code></td>
|
||||
<td>Value received from server in Step 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -594,13 +594,13 @@ answer = BA0D89B50A95A30DD1754ABF283BCE96F3B3EB4214B77CB91EFBE6D3F5CF063E938C11B
|
|||
<tr>
|
||||
<td>g_a</td>
|
||||
<td>300, 260</td>
|
||||
<td><code>FE000100568755DD212BB5081F78AB93</code> <code>8D3E0A63F12D552D0F83FD9794E027AC</code> <code>2590D514CD86BEF1B089E2F78311BB7D</code> <code>A0573C13DF3CE3FE0794F5D6F414D53C</code> <code>8F45F4549251DF16123793B80F11322C</code> <code>5DCE6007E4C62FA7713776BEEEC5DC9E</code> <code>48307495146854F60B3BB7052ABC300C</code> <code>46E57B212E59D6F6C2D2FF704D98888D</code> <code>71CAF958813BED9D916E439AD02A9FA7</code> <code>0678454E0C92885E3193FCA553181EE5</code> <code>15721688AFAFF9E7527B467B45A0A45A</code> <code>6F3BB0A8616646B6D5B7C71406C3D7AE</code> <code>232E7A5F78B0CDF39A9EC8E3651733A3</code> <code>51C6EECA792C58A02C6AC2077714CDB3</code> <code>22A50CAD2F28FF307F658DABF2EDA874</code> <code>E65D5A7361F6D779D52F87B08DA77D0D</code><br> <code>82DAFAE6</code></td>
|
||||
<td><code>FE00010061DEE10F675855ACEFA2B2CA</code> <code>3A0D3354652CB75AD6A4D7CF83F8C62E</code> <code>667ACCA6F039DBA4E8B692A7441CC327</code> <code>A6E7ECF65ECE1F383DE9AB38A7439AE7</code> <code>3EC90B02A824F1D64C9FA19C057875AF</code> <code>619621147B5B05A0DB1B0B27A74070C4</code> <code>5E30042D2AA455DFA899DFA163C5E0F4</code> <code>2F90C94F5BD2E4F689D42EBD1ABF7AB8</code> <code>43DEBA27C14060ABCAF569D5B517444B</code> <code>900B1428C8986E46F4985C30C50CEC97</code> <code>3F6C2A91AE8EE830E9F4931E84D23787</code> <code>2700E547A2424BFDFA35D897ACDD78B6</code> <code>B137A5FCE31FD5A3228575204798E40C</code> <code>D545D309EB82222F3C9EA9568ABF70A5</code> <code>209CF379AC9B1669D6708938A47161F1</code> <code>FE51C48014183D2354953CC6897175B6</code><br> <code>0AC1F191</code></td>
|
||||
<td><code>g_a</code> diffie-hellman parameter</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_time</td>
|
||||
<td>560, 4</td>
|
||||
<td><code>47E57065</code> (1701897543 in decimal)</td>
|
||||
<td><code>A4F97065</code> (1701902756 in decimal)</td>
|
||||
<td>Server time</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -609,34 +609,34 @@ answer = BA0D89B50A95A30DD1754ABF283BCE96F3B3EB4214B77CB91EFBE6D3F5CF063E938C11B
|
|||
<h5><a class="anchor" href="#7-client-computes-random-2048-bit-number-b-using-a-sufficient-amount-of-entropy-and-sends-the-server-a-message" id="7-client-computes-random-2048-bit-number-b-using-a-sufficient-amount-of-entropy-and-sends-the-server-a-message" name="7-client-computes-random-2048-bit-number-b-using-a-sufficient-amount-of-entropy-and-sends-the-server-a-message"><i class="anchor-icon"></i></a>7) Client computes random 2048-bit number <em>b</em> (using a sufficient amount of entropy) and sends the server a message</h5>
|
||||
<p>First, generate a secure random 2048-bit number b:</p>
|
||||
<!-- start b -->
|
||||
<pre><code>b = 9033A9A81291FB69C8DE4F177AFF575EE3A18859009E9A9A5FA3DE161B05494A3578967746425F8A4499CF2088104E2E1DABDED50EB4E84F1CAB7D6F2412AC86F9CE0EC1F41DA233CFA6104F4D1B0992FF9BDDC12E1164CC59DAA74850792A1EFD145DC7975FC9D7DD2CF58613EEB482553A896C6E2B44A9A0D74C356BD5441C3E655FDCE84C5EADF7CC7CE418B67AABFE7513960742D1D43EE4CB57EDDE8D0A04DA31D4D715582194A055EC1F7869291C2C8AE5F335918B611EEB905C03084C47B355A7C0228533DABBC6C98FEB97B28A9200A3649F0BFB049632BC8278F0EEAAF39DA2DACA23C23B963F9ED61076A20B0E94B545E058CECF374053ED0CC1B4</code></pre>
|
||||
<pre><code>b = 63CC5ECAEEEBD95B30776FD9AA8B616AD00CF1C6A68EB385433B30B9A15127F9402790A5F9E682AEB58F93D025B2F68989336B717B6EF35F648ABC8AC9D74491F287E05F0E598B2F37903063EE8982FD504F1C55E8852ECF511D80A5DB28E355A37490520AF3D941B790F6F29B4CF38EAE7D34B3CC87261C89706DF7D12758CD85E08DBFF2E2092319F53D37B623EB67941D00C743C46B4D61EAED4C1278A5F6F996B2C05F680D19DC37219C72EDCCFD29FA98E28B3D56B8C8EC6E6AC54B870BAE93923B2D9044690D3CA0B01CB75A9533484676677EDA1DB1E27DEC6AB00F8623B3FFDF8A592EFB4D83B032BD98B12278A9969CA7BAF766E190858CC480C24F</code></pre>
|
||||
<!-- end b -->
|
||||
<p>Then compute <code>g_b = pow(g, b) mod dh_prime</code></p>
|
||||
<!-- start g_b -->
|
||||
<pre><code>g_b = B58BB862D3E785E98B302A637B5C17DD2F96979B87B93A6A28EC84162007ED36643D42EBF3ECD230CEF3AC57C1E56DB0102392F189B29A9D1EFF5EEE439C6251256A6B174D9182C03490DA9E0EC92AA6524909083CAA8BDBE7F3B34D13E5F6E9C1A4839D68D0A3B480FBB0279AF1A6B1E6BE422BC356A4D01DFBBE25A868295CADF41E1DACFCCC15FACC872AA0A14B2430509A6D33ADD1150BC839AD21854CF348F29D33BF6D86ED5BDB01ED51144150CE17983668E451DC2A0CA1040932095751D609B10F3F634626B5EA0FA6FE1F6E02372B4697A87910A4834A460ECB7F661D25CC139C5913A8E54618C7FC410D41525E5DCAA534D920C74CBD8D8D8663D5</code></pre>
|
||||
<pre><code>g_b = 8D8BCF4B7E8CACB39C31454E2924A64BFD988D4A156175EBB0279F44E3D1FC9A142E635DCE46B2F10063EEB2AEC4BE6C041F0435D672AE4E72D9E73C87DF37245BE30C3008AEA1306062C60CF5299AFD9A06C9E03EA758CD2E627D65499E4D5F44A3D81AD4222EE77C04B0B4D776F69D2C3B5292C220B4415530B3C5BE6A8837B7F3C324AABBE97952958E2E66D36465AA52A7B47F3A1013387D024DFE924046F2E9AA1BEB1D730FB3F433558ADE52758AC7C307AEE0AA9623570836B922B650E0B1C295EC500007A6B9032D3CDD10B8EE065B2D4A962F518EA46C6897CBA5B36411A61FB826EE6FA48AC9CD4DDF59A9E7BADCEC44BA470C6BAC78354F3CEC0C</code></pre>
|
||||
<!-- end g_b -->
|
||||
<h6>7.1) generation of encrypted_data</h6>
|
||||
<!-- start client_DH_inner_data -->
|
||||
<p>Generated payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 54 B6 43 66 0A 95 A3 0D D1 75 4A BF 28 3B CE 96
|
||||
0010 | F3 B3 EB 42 14 B7 7C B9 1E FB E6 D3 F5 CF 06 3E
|
||||
0020 | 93 8C 11 B7 00 00 00 00 00 00 00 00 FE 00 01 00
|
||||
0030 | B5 8B B8 62 D3 E7 85 E9 8B 30 2A 63 7B 5C 17 DD
|
||||
0040 | 2F 96 97 9B 87 B9 3A 6A 28 EC 84 16 20 07 ED 36
|
||||
0050 | 64 3D 42 EB F3 EC D2 30 CE F3 AC 57 C1 E5 6D B0
|
||||
0060 | 10 23 92 F1 89 B2 9A 9D 1E FF 5E EE 43 9C 62 51
|
||||
0070 | 25 6A 6B 17 4D 91 82 C0 34 90 DA 9E 0E C9 2A A6
|
||||
0080 | 52 49 09 08 3C AA 8B DB E7 F3 B3 4D 13 E5 F6 E9
|
||||
0090 | C1 A4 83 9D 68 D0 A3 B4 80 FB B0 27 9A F1 A6 B1
|
||||
00A0 | E6 BE 42 2B C3 56 A4 D0 1D FB BE 25 A8 68 29 5C
|
||||
00B0 | AD F4 1E 1D AC FC CC 15 FA CC 87 2A A0 A1 4B 24
|
||||
00C0 | 30 50 9A 6D 33 AD D1 15 0B C8 39 AD 21 85 4C F3
|
||||
00D0 | 48 F2 9D 33 BF 6D 86 ED 5B DB 01 ED 51 14 41 50
|
||||
00E0 | CE 17 98 36 68 E4 51 DC 2A 0C A1 04 09 32 09 57
|
||||
00F0 | 51 D6 09 B1 0F 3F 63 46 26 B5 EA 0F A6 FE 1F 6E
|
||||
0100 | 02 37 2B 46 97 A8 79 10 A4 83 4A 46 0E CB 7F 66
|
||||
0110 | 1D 25 CC 13 9C 59 13 A8 E5 46 18 C7 FC 41 0D 41
|
||||
0120 | 52 5E 5D CA A5 34 D9 20 C7 4C BD 8D 8D 86 63 D5</code></pre>
|
||||
<pre><code>0000 | 54 B6 43 66 33 5E 99 59 32 B9 7A B0 F4 99 8B 49
|
||||
0010 | 79 A9 8A B8 1D 2A 19 43 39 EB D2 05 03 B5 CB 18
|
||||
0020 | 9E DE 22 74 00 00 00 00 00 00 00 00 FE 00 01 00
|
||||
0030 | 8D 8B CF 4B 7E 8C AC B3 9C 31 45 4E 29 24 A6 4B
|
||||
0040 | FD 98 8D 4A 15 61 75 EB B0 27 9F 44 E3 D1 FC 9A
|
||||
0050 | 14 2E 63 5D CE 46 B2 F1 00 63 EE B2 AE C4 BE 6C
|
||||
0060 | 04 1F 04 35 D6 72 AE 4E 72 D9 E7 3C 87 DF 37 24
|
||||
0070 | 5B E3 0C 30 08 AE A1 30 60 62 C6 0C F5 29 9A FD
|
||||
0080 | 9A 06 C9 E0 3E A7 58 CD 2E 62 7D 65 49 9E 4D 5F
|
||||
0090 | 44 A3 D8 1A D4 22 2E E7 7C 04 B0 B4 D7 76 F6 9D
|
||||
00A0 | 2C 3B 52 92 C2 20 B4 41 55 30 B3 C5 BE 6A 88 37
|
||||
00B0 | B7 F3 C3 24 AA BB E9 79 52 95 8E 2E 66 D3 64 65
|
||||
00C0 | AA 52 A7 B4 7F 3A 10 13 38 7D 02 4D FE 92 40 46
|
||||
00D0 | F2 E9 AA 1B EB 1D 73 0F B3 F4 33 55 8A DE 52 75
|
||||
00E0 | 8A C7 C3 07 AE E0 AA 96 23 57 08 36 B9 22 B6 50
|
||||
00F0 | E0 B1 C2 95 EC 50 00 07 A6 B9 03 2D 3C DD 10 B8
|
||||
0100 | EE 06 5B 2D 4A 96 2F 51 8E A4 6C 68 97 CB A5 B3
|
||||
0110 | 64 11 A6 1F B8 26 EE 6F A4 8A C9 CD 4D DF 59 A9
|
||||
0120 | E7 BA DC EC 44 BA 47 0C 6B AC 78 35 4F 3C EC 0C</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>client_DH_inner_data#6643b654 nonce:int128 server_nonce:int128 retry_id:long g_b:string = Client_DH_Inner_Data;</code></pre>
|
||||
<table class="table">
|
||||
|
@ -658,19 +658,19 @@ answer = BA0D89B50A95A30DD1754ABF283BCE96F3B3EB4214B77CB91EFBE6D3F5CF063E938C11B
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>4, 16</td>
|
||||
<td><code>0A95A30DD1754ABF283BCE96F3B3EB42</code></td>
|
||||
<td><code>335E995932B97AB0F4998B4979A98AB8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>20, 16</td>
|
||||
<td><code>14B77CB91EFBE6D3F5CF063E938C11B7</code></td>
|
||||
<td><code>1D2A194339EBD20503B5CB189EDE2274</code></td>
|
||||
<td>Value received from server in Step 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>g_b</td>
|
||||
<td>36, 260</td>
|
||||
<td><code>FE000100B58BB862D3E785E98B302A63</code> <code>7B5C17DD2F96979B87B93A6A28EC8416</code> <code>2007ED36643D42EBF3ECD230CEF3AC57</code> <code>C1E56DB0102392F189B29A9D1EFF5EEE</code> <code>439C6251256A6B174D9182C03490DA9E</code> <code>0EC92AA6524909083CAA8BDBE7F3B34D</code> <code>13E5F6E9C1A4839D68D0A3B480FBB027</code> <code>9AF1A6B1E6BE422BC356A4D01DFBBE25</code> <code>A868295CADF41E1DACFCCC15FACC872A</code> <code>A0A14B2430509A6D33ADD1150BC839AD</code> <code>21854CF348F29D33BF6D86ED5BDB01ED</code> <code>51144150CE17983668E451DC2A0CA104</code> <code>0932095751D609B10F3F634626B5EA0F</code> <code>A6FE1F6E02372B4697A87910A4834A46</code> <code>0ECB7F661D25CC139C5913A8E54618C7</code> <code>FC410D41525E5DCAA534D920C74CBD8D</code><br> <code>8D8663D5</code></td>
|
||||
<td><code>FE0001008D8BCF4B7E8CACB39C31454E</code> <code>2924A64BFD988D4A156175EBB0279F44</code> <code>E3D1FC9A142E635DCE46B2F10063EEB2</code> <code>AEC4BE6C041F0435D672AE4E72D9E73C</code> <code>87DF37245BE30C3008AEA1306062C60C</code> <code>F5299AFD9A06C9E03EA758CD2E627D65</code> <code>499E4D5F44A3D81AD4222EE77C04B0B4</code> <code>D776F69D2C3B5292C220B4415530B3C5</code> <code>BE6A8837B7F3C324AABBE97952958E2E</code> <code>66D36465AA52A7B47F3A1013387D024D</code> <code>FE924046F2E9AA1BEB1D730FB3F43355</code> <code>8ADE52758AC7C307AEE0AA9623570836</code> <code>B922B650E0B1C295EC500007A6B9032D</code> <code>3CDD10B8EE065B2D4A962F518EA46C68</code> <code>97CBA5B36411A61FB826EE6FA48AC9CD</code> <code>4DDF59A9E7BADCEC44BA470C6BAC7835</code><br> <code>4F3CEC0C</code></td>
|
||||
<td>Single-byte prefix denoting length, a 256-byte (2048-bit) string, and zero bytes of padding</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -684,47 +684,47 @@ answer = BA0D89B50A95A30DD1754ABF283BCE96F3B3EB4214B77CB91EFBE6D3F5CF063E938C11B
|
|||
<!-- end client_DH_inner_data -->
|
||||
<p>The serialization of <em>Client_DH_Inner_Data</em> produces a string <strong>data</strong>. This is used to generate <strong>encrypted_data</strong> as specified in <a href="#7-client-computes-random-2048-bit-number-b-using-a-sufficient-amount-of-entropy-and-sends-the-server-a-message">step 6</a>, using the following inputs:</p>
|
||||
<!-- start client_DH_inner_data_input -->
|
||||
<pre><code>data = 54B643660A95A30DD1754ABF283BCE96F3B3EB4214B77CB91EFBE6D3F5CF063E938C11B70000000000000000FE000100B58BB862D3E785E98B302A637B5C17DD2F96979B87B93A6A28EC84162007ED36643D42EBF3ECD230CEF3AC57C1E56DB0102392F189B29A9D1EFF5EEE439C6251256A6B174D9182C03490DA9E0EC92AA6524909083CAA8BDBE7F3B34D13E5F6E9C1A4839D68D0A3B480FBB0279AF1A6B1E6BE422BC356A4D01DFBBE25A868295CADF41E1DACFCCC15FACC872AA0A14B2430509A6D33ADD1150BC839AD21854CF348F29D33BF6D86ED5BDB01ED51144150CE17983668E451DC2A0CA1040932095751D609B10F3F634626B5EA0FA6FE1F6E02372B4697A87910A4834A460ECB7F661D25CC139C5913A8E54618C7FC410D41525E5DCAA534D920C74CBD8D8D8663D5
|
||||
padding = C9204C19F21688A1A9847BE8
|
||||
tmp_aes_key = 2328CFB62740758C72875FFA9F28954B0F484F3F8F08BA1D9777B83D72EAE49F
|
||||
tmp_aes_iv = B245F332C793EA0B889E6B792A56842E15EF79E8ACCA8AA4589FC64DB43580BF</code></pre>
|
||||
<pre><code>data = 54B64366335E995932B97AB0F4998B4979A98AB81D2A194339EBD20503B5CB189EDE22740000000000000000FE0001008D8BCF4B7E8CACB39C31454E2924A64BFD988D4A156175EBB0279F44E3D1FC9A142E635DCE46B2F10063EEB2AEC4BE6C041F0435D672AE4E72D9E73C87DF37245BE30C3008AEA1306062C60CF5299AFD9A06C9E03EA758CD2E627D65499E4D5F44A3D81AD4222EE77C04B0B4D776F69D2C3B5292C220B4415530B3C5BE6A8837B7F3C324AABBE97952958E2E66D36465AA52A7B47F3A1013387D024DFE924046F2E9AA1BEB1D730FB3F433558ADE52758AC7C307AEE0AA9623570836B922B650E0B1C295EC500007A6B9032D3CDD10B8EE065B2D4A962F518EA46C6897CBA5B36411A61FB826EE6FA48AC9CD4DDF59A9E7BADCEC44BA470C6BAC78354F3CEC0C
|
||||
padding = 33608B65B675EDEB574612F3
|
||||
tmp_aes_key = 9A4E3B9FFC93395AEF3A1A3D980C65B346AD55239764095BCE4CE82EF7D7B188
|
||||
tmp_aes_iv = 080199AE9E1B3CB91C6AECDD853F64F0A82A203CC088FA0F2D8F19D71688B570</code></pre>
|
||||
<!-- end client_DH_inner_data_input -->
|
||||
<p>Process:</p>
|
||||
<pre><code>data_with_hash := SHA1(data) + data + padding (0-15 random bytes such that total length is divisible by 16)
|
||||
encrypted_data := AES256_ige_encrypt (data_with_hash, tmp_aes_key, tmp_aes_iv);</code></pre>
|
||||
<p>Output:</p>
|
||||
<!-- start client_DH_inner_data_output -->
|
||||
<pre><code>encrypted_data = D874C3A771BE5DC70A8D423F8A392667BBAA03B18144023E3CDA8C58435DFFAA68EB22C0506A55EA8692CB1F651F03FE633A1897E072952B54683FF338BCDBBBCFB362B40B72CA7B9FA52D7A31960ECADE9437895500024F1DCB1A7C7350B1A320ED6E6B57345A22AE0BC3ED46664C9D6684D0DA4BFFB168C98AA0936C59354B9AC8B93578CB707FAFB64F75A80E0D8DC3B4E0B25A9837EDC4689A35C8EF8FDD78BEAEE01DA389F91DE89CA4827F0C794098065A0881DFF2FE2A914663A67D37FCDFDE1A783E468D86577010923CA99085495685FEC1D88A7F73C34F54DFB1A89931C46A166BFF7CF13DAA7D17E3688029624DA4EEA9113264590FEED35C505A345BD47451237A666CEE49E4A2FA740A1F54E463B63D5E5F2C4899AB3994A5493E36BF21ED968D7AD1B45CC22CA533B947E410BE0419CCCF08639FE72A207A88495BB6EAB0B39AF09B878D1B7EE94E0C</code></pre>
|
||||
<pre><code>encrypted_data = E938CDA17FCE9A820D24122C19BFEED33DBA6CB395EA0F4759590F95AF2FCD55BCD8F63083DABE9D16967CC1B452B0ED9D5091FF0F3EA9E17238D8963D6DA168E43BB6C0532CB78F8ECB32F090752D81EB51DD609BF573E7E69F99FDAD0EFCDF98233261403D91FB9D9BBC599B97F0549FCD00D4B97495284836BB0B57F8AE87CB406EF0FB61FCCADAF34275400D36FFE12D7F194D2571CCC4CF60415A54ED0FA91C14B12F5B38217B041D3CA397AD9BEE46D19CC9A0B4BDEEC487586C9BD8D84D3AE7E5DB284233BFF5B15A1404DFB9756A277ECB218C22C5575CCE58F3A10A85ADD9A49C65CFC1D22BB2A9242FC119C1CBC6BC8DED37B2C67AB0B0DCC39C885067AD502891449410C37402D129528F5ECA6F60C170F91709D10A538D9568F816E14923E319D59E413558619EC7CB5648428C8475097941C0E35D50F039620DB8260D430AE5BDA4823798D3EB8F5FCF</code></pre>
|
||||
<!-- end client_DH_inner_data_output -->
|
||||
<p>The length of the final string is 336 bytes.</p>
|
||||
<h6>7.2) set_client_DH_params query</h6>
|
||||
<!-- start set_client_DH_params -->
|
||||
<p>Sent payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 F0 C4 00 00 47 E5 70 65
|
||||
0010 | 78 01 00 00 1F 5F 04 F5 0A 95 A3 0D D1 75 4A BF
|
||||
0020 | 28 3B CE 96 F3 B3 EB 42 14 B7 7C B9 1E FB E6 D3
|
||||
0030 | F5 CF 06 3E 93 8C 11 B7 FE 50 01 00 D8 74 C3 A7
|
||||
0040 | 71 BE 5D C7 0A 8D 42 3F 8A 39 26 67 BB AA 03 B1
|
||||
0050 | 81 44 02 3E 3C DA 8C 58 43 5D FF AA 68 EB 22 C0
|
||||
0060 | 50 6A 55 EA 86 92 CB 1F 65 1F 03 FE 63 3A 18 97
|
||||
0070 | E0 72 95 2B 54 68 3F F3 38 BC DB BB CF B3 62 B4
|
||||
0080 | 0B 72 CA 7B 9F A5 2D 7A 31 96 0E CA DE 94 37 89
|
||||
0090 | 55 00 02 4F 1D CB 1A 7C 73 50 B1 A3 20 ED 6E 6B
|
||||
00A0 | 57 34 5A 22 AE 0B C3 ED 46 66 4C 9D 66 84 D0 DA
|
||||
00B0 | 4B FF B1 68 C9 8A A0 93 6C 59 35 4B 9A C8 B9 35
|
||||
00C0 | 78 CB 70 7F AF B6 4F 75 A8 0E 0D 8D C3 B4 E0 B2
|
||||
00D0 | 5A 98 37 ED C4 68 9A 35 C8 EF 8F DD 78 BE AE E0
|
||||
00E0 | 1D A3 89 F9 1D E8 9C A4 82 7F 0C 79 40 98 06 5A
|
||||
00F0 | 08 81 DF F2 FE 2A 91 46 63 A6 7D 37 FC DF DE 1A
|
||||
0100 | 78 3E 46 8D 86 57 70 10 92 3C A9 90 85 49 56 85
|
||||
0110 | FE C1 D8 8A 7F 73 C3 4F 54 DF B1 A8 99 31 C4 6A
|
||||
0120 | 16 6B FF 7C F1 3D AA 7D 17 E3 68 80 29 62 4D A4
|
||||
0130 | EE A9 11 32 64 59 0F EE D3 5C 50 5A 34 5B D4 74
|
||||
0140 | 51 23 7A 66 6C EE 49 E4 A2 FA 74 0A 1F 54 E4 63
|
||||
0150 | B6 3D 5E 5F 2C 48 99 AB 39 94 A5 49 3E 36 BF 21
|
||||
0160 | ED 96 8D 7A D1 B4 5C C2 2C A5 33 B9 47 E4 10 BE
|
||||
0170 | 04 19 CC CF 08 63 9F E7 2A 20 7A 88 49 5B B6 EA
|
||||
0180 | B0 B3 9A F0 9B 87 8D 1B 7E E9 4E 0C</code></pre>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 50 D4 0C 00 A4 F9 70 65
|
||||
0010 | 78 01 00 00 1F 5F 04 F5 33 5E 99 59 32 B9 7A B0
|
||||
0020 | F4 99 8B 49 79 A9 8A B8 1D 2A 19 43 39 EB D2 05
|
||||
0030 | 03 B5 CB 18 9E DE 22 74 FE 50 01 00 E9 38 CD A1
|
||||
0040 | 7F CE 9A 82 0D 24 12 2C 19 BF EE D3 3D BA 6C B3
|
||||
0050 | 95 EA 0F 47 59 59 0F 95 AF 2F CD 55 BC D8 F6 30
|
||||
0060 | 83 DA BE 9D 16 96 7C C1 B4 52 B0 ED 9D 50 91 FF
|
||||
0070 | 0F 3E A9 E1 72 38 D8 96 3D 6D A1 68 E4 3B B6 C0
|
||||
0080 | 53 2C B7 8F 8E CB 32 F0 90 75 2D 81 EB 51 DD 60
|
||||
0090 | 9B F5 73 E7 E6 9F 99 FD AD 0E FC DF 98 23 32 61
|
||||
00A0 | 40 3D 91 FB 9D 9B BC 59 9B 97 F0 54 9F CD 00 D4
|
||||
00B0 | B9 74 95 28 48 36 BB 0B 57 F8 AE 87 CB 40 6E F0
|
||||
00C0 | FB 61 FC CA DA F3 42 75 40 0D 36 FF E1 2D 7F 19
|
||||
00D0 | 4D 25 71 CC C4 CF 60 41 5A 54 ED 0F A9 1C 14 B1
|
||||
00E0 | 2F 5B 38 21 7B 04 1D 3C A3 97 AD 9B EE 46 D1 9C
|
||||
00F0 | C9 A0 B4 BD EE C4 87 58 6C 9B D8 D8 4D 3A E7 E5
|
||||
0100 | DB 28 42 33 BF F5 B1 5A 14 04 DF B9 75 6A 27 7E
|
||||
0110 | CB 21 8C 22 C5 57 5C CE 58 F3 A1 0A 85 AD D9 A4
|
||||
0120 | 9C 65 CF C1 D2 2B B2 A9 24 2F C1 19 C1 CB C6 BC
|
||||
0130 | 8D ED 37 B2 C6 7A B0 B0 DC C3 9C 88 50 67 AD 50
|
||||
0140 | 28 91 44 94 10 C3 74 02 D1 29 52 8F 5E CA 6F 60
|
||||
0150 | C1 70 F9 17 09 D1 0A 53 8D 95 68 F8 16 E1 49 23
|
||||
0160 | E3 19 D5 9E 41 35 58 61 9E C7 CB 56 48 42 8C 84
|
||||
0170 | 75 09 79 41 C0 E3 5D 50 F0 39 62 0D B8 26 0D 43
|
||||
0180 | 0A E5 BD A4 82 37 98 D3 EB 8F 5F CF</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>set_client_DH_params#f5045f1f nonce:int128 server_nonce:int128 encrypted_data:string = Set_client_DH_params_answer;</code></pre>
|
||||
<table class="table">
|
||||
|
@ -746,7 +746,7 @@ encrypted_data := AES256_ige_encrypt (data_with_hash, tmp_aes_key, tmp_aes_iv);<
|
|||
<tr>
|
||||
<td>message_id</td>
|
||||
<td>8, 8</td>
|
||||
<td><code>F0C4000047E57065</code></td>
|
||||
<td><code>50D40C00A4F97065</code></td>
|
||||
<td>Message ID generated as specified <a href="/mtproto/description#message-identifier-msg-id">here »</a> (unixtime() << 32) + (N*4)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -764,19 +764,19 @@ encrypted_data := AES256_ige_encrypt (data_with_hash, tmp_aes_key, tmp_aes_iv);<
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>24, 16</td>
|
||||
<td><code>0A95A30DD1754ABF283BCE96F3B3EB42</code></td>
|
||||
<td><code>335E995932B97AB0F4998B4979A98AB8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>40, 16</td>
|
||||
<td><code>14B77CB91EFBE6D3F5CF063E938C11B7</code></td>
|
||||
<td><code>1D2A194339EBD20503B5CB189EDE2274</code></td>
|
||||
<td>Value received from server in Step 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>encrypted_data</td>
|
||||
<td>56, 340</td>
|
||||
<td><code>FE500100D874C3A771BE5DC70A8D423F</code> <code>8A392667BBAA03B18144023E3CDA8C58</code> <code>435DFFAA68EB22C0506A55EA8692CB1F</code> <code>651F03FE633A1897E072952B54683FF3</code> <code>38BCDBBBCFB362B40B72CA7B9FA52D7A</code> <code>31960ECADE9437895500024F1DCB1A7C</code> <code>7350B1A320ED6E6B57345A22AE0BC3ED</code> <code>46664C9D6684D0DA4BFFB168C98AA093</code> <code>6C59354B9AC8B93578CB707FAFB64F75</code> <code>A80E0D8DC3B4E0B25A9837EDC4689A35</code> <code>C8EF8FDD78BEAEE01DA389F91DE89CA4</code> <code>827F0C794098065A0881DFF2FE2A9146</code> <code>63A67D37FCDFDE1A783E468D86577010</code> <code>923CA99085495685FEC1D88A7F73C34F</code> <code>54DFB1A89931C46A166BFF7CF13DAA7D</code> <code>17E3688029624DA4EEA9113264590FEE</code> <code>D35C505A345BD47451237A666CEE49E4</code> <code>A2FA740A1F54E463B63D5E5F2C4899AB</code> <code>3994A5493E36BF21ED968D7AD1B45CC2</code> <code>2CA533B947E410BE0419CCCF08639FE7</code> <code>2A207A88495BB6EAB0B39AF09B878D1B</code><br> <code>7EE94E0C</code></td>
|
||||
<td><code>FE500100E938CDA17FCE9A820D24122C</code> <code>19BFEED33DBA6CB395EA0F4759590F95</code> <code>AF2FCD55BCD8F63083DABE9D16967CC1</code> <code>B452B0ED9D5091FF0F3EA9E17238D896</code> <code>3D6DA168E43BB6C0532CB78F8ECB32F0</code> <code>90752D81EB51DD609BF573E7E69F99FD</code> <code>AD0EFCDF98233261403D91FB9D9BBC59</code> <code>9B97F0549FCD00D4B97495284836BB0B</code> <code>57F8AE87CB406EF0FB61FCCADAF34275</code> <code>400D36FFE12D7F194D2571CCC4CF6041</code> <code>5A54ED0FA91C14B12F5B38217B041D3C</code> <code>A397AD9BEE46D19CC9A0B4BDEEC48758</code> <code>6C9BD8D84D3AE7E5DB284233BFF5B15A</code> <code>1404DFB9756A277ECB218C22C5575CCE</code> <code>58F3A10A85ADD9A49C65CFC1D22BB2A9</code> <code>242FC119C1CBC6BC8DED37B2C67AB0B0</code> <code>DCC39C885067AD502891449410C37402</code> <code>D129528F5ECA6F60C170F91709D10A53</code> <code>8D9568F816E14923E319D59E41355861</code> <code>9EC7CB5648428C8475097941C0E35D50</code> <code>F039620DB8260D430AE5BDA4823798D3</code><br> <code>EB8F5FCF</code></td>
|
||||
<td>Encrypted client_DH_inner_data generated previously, serialized as a TL byte string</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -785,17 +785,17 @@ encrypted_data := AES256_ige_encrypt (data_with_hash, tmp_aes_key, tmp_aes_iv);<
|
|||
<h5><a class="anchor" href="#8-auth-key-generation" id="8-auth-key-generation" name="8-auth-key-generation"><i class="anchor-icon"></i></a>8) Auth key generation</h5>
|
||||
<p>The client computes the auth_key using formula <code>g_a^b mod dh_prime</code>:</p>
|
||||
<!-- start auth_key -->
|
||||
<pre><code>auth_key = BEF72B1A5FD2E0C6A22B264A130572011FC90012F8B29BD1ED755B7F1BEA352CC190D6044E2E7553473849BC1B52389FE0548EA7E678F0070ECF54831639954F5AFBA8A7B5CE0C9E7FB3B0551B1C83A543DE5F99B316DCD8C6CE211975DD3DED84899944EE4643E9D11E1F2C123DE0162FC2C47EFBC5736DB15C134E98581C6EE1A7C93CFEC52DAC6548D4F62706E28F4268BE2BCF9BD343D1F5EB882F246390008E4CEFD3B713A0CD683ACDBA5361B92402AD6E3A6EE91C40915E5C33CC1B7295FF00479CDC5821951B896A6D984FFD03746FE1679EDC1F188B71D620810DD22656E1CB0B8ED287AF8805BDCA2D44092309FA4831760121986B314FF620EA0C</code></pre>
|
||||
<pre><code>auth_key = A4230DDD3A80A925774E23CFB272A8C4B6CD40C989561A6E8397B01785D9367B3B21A75155B3ADE1D2292ACB565A635AC34FBD077CE68C71A8E5B8AD494655916B3BF1941F51EB1E75122648BB1587CD18D570187902BA47EB5DBA8EA3D63243FFE8431EC4C0AB4DE7AE26CDE9E2D1D946BEEA55DDAC2730CC89BE17F68295ABD5906EC873EA7566FA0E8B734DA862B0F6AB876796A9F36C2DB2654288EEE2032CDAAF6AC156FFA5004DDB377E3D8E0659079DFA41D622935C1E36B897EE2F571503A8EA19F6B2E0AC31D18FC09AA7E8727531008F77B5A91DFE2540CE236F27177113E7B2B865B9F9BD90483D36E836938621D69AA9B66217FE2306B56408F0</code></pre>
|
||||
<!-- end auth_key -->
|
||||
<h5><a class="anchor" href="#9-final-server-reply" id="9-final-server-reply" name="9-final-server-reply"><i class="anchor-icon"></i></a>9) Final server reply</h5>
|
||||
<p>The server verifies and confirms that auth_key_hash is unique: since it's unique, it replies with the following:</p>
|
||||
<!-- start dh_gen_ok -->
|
||||
<p>Received payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 01 D8 70 AC 47 E5 70 65
|
||||
0010 | 58 00 00 00 34 F7 CB 3B 0A 95 A3 0D D1 75 4A BF
|
||||
0020 | 28 3B CE 96 F3 B3 EB 42 14 B7 7C B9 1E FB E6 D3
|
||||
0030 | F5 CF 06 3E 93 8C 11 B7 CD 07 4D D7 BF 66 CE 04
|
||||
0040 | 2E 10 24 B3 D8 7E AC 36</code></pre>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 01 74 C3 A2 A4 F9 70 65
|
||||
0010 | 6C 00 00 00 34 F7 CB 3B 33 5E 99 59 32 B9 7A B0
|
||||
0020 | F4 99 8B 49 79 A9 8A B8 1D 2A 19 43 39 EB D2 05
|
||||
0030 | 03 B5 CB 18 9E DE 22 74 EE 44 DE 65 D0 70 EE 2F
|
||||
0040 | 4A 60 F9 09 59 D9 15 C9</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>dh_gen_ok#3bcbf734 nonce:int128 server_nonce:int128 new_nonce_hash1:int128 = Set_client_DH_params_answer;</code></pre>
|
||||
<table class="table">
|
||||
|
@ -817,13 +817,13 @@ encrypted_data := AES256_ige_encrypt (data_with_hash, tmp_aes_key, tmp_aes_iv);<
|
|||
<tr>
|
||||
<td>message_id</td>
|
||||
<td>8, 8</td>
|
||||
<td><code>01D870AC47E57065</code></td>
|
||||
<td><code>0174C3A2A4F97065</code></td>
|
||||
<td>Message ID generated as specified <a href="/mtproto/description#message-identifier-msg-id">here »</a> (unixtime() << 32) + (N*4)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>message_length</td>
|
||||
<td>16, 4</td>
|
||||
<td><code>58000000</code> (88 in decimal)</td>
|
||||
<td><code>6C000000</code> (108 in decimal)</td>
|
||||
<td>Message body length</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -835,19 +835,19 @@ encrypted_data := AES256_ige_encrypt (data_with_hash, tmp_aes_key, tmp_aes_iv);<
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>24, 16</td>
|
||||
<td><code>0A95A30DD1754ABF283BCE96F3B3EB42</code></td>
|
||||
<td><code>335E995932B97AB0F4998B4979A98AB8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>40, 16</td>
|
||||
<td><code>14B77CB91EFBE6D3F5CF063E938C11B7</code></td>
|
||||
<td><code>1D2A194339EBD20503B5CB189EDE2274</code></td>
|
||||
<td>Value received from server in Step 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>new_nonce_hash1</td>
|
||||
<td>56, 16</td>
|
||||
<td><code>CD074DD7BF66CE042E1024B3D87EAC36</code></td>
|
||||
<td><code>EE44DE65D070EE2F4A60F90959D915C9</code></td>
|
||||
<td>The 128 lower-order bits of SHA1 of the byte string derived from the <code>new_nonce</code> string by adding a single byte with the value of 1, 2, or 3, and followed by another 8 bytes with <code>auth_key_aux_hash</code>. Different values are required to prevent an intruder from changing server response dh_gen_ok into dh_gen_retry.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
@ -848,8 +848,8 @@
|
|||
<td>Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see <a href="/api/stories#hiding-stories-of-other-users">here »</a> for more info.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/stories.applyBoost">stories.applyBoost</a></td>
|
||||
<td><a href="/api/boost">Boost »</a> a <a href="/api/channel">channel</a>, leveling it up and granting it permission to post <a href="/api/stories">stories »</a>.</td>
|
||||
<td><a href="/method/account.updateColor">account.updateColor</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
|
|
@ -56,21 +56,6 @@
|
|||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code></code></pre></p>
|
||||
<h3><a class="anchor" href="#constructors" id="constructors" name="constructors"><i class="anchor-icon"></i></a>Constructors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Constructor</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/booster">booster</a></td>
|
||||
<td>Info about a <a href="/api/boost">boost</a> made by a specific user.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/boost">Channel boosts</a></h4>
|
||||
<p>Telegram Premium users can grant their favorite channels additional features like the ability to post stories by giving them boosts.</p></div>
|
||||
|
|
|
@ -281,6 +281,14 @@
|
|||
<td><a href="/constructor/channelAdminLogEventActionToggleAntiSpam">channelAdminLogEventActionToggleAntiSpam</a></td>
|
||||
<td><a href="/api/antispam">Native antispam</a> functionality was enabled or disabled.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/channelAdminLogEventActionChangeColor">channelAdminLogEventActionChangeColor</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/channelAdminLogEventActionChangeBackgroundEmoji">channelAdminLogEventActionChangeBackgroundEmoji</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
||||
|
|
|
@ -145,6 +145,10 @@
|
|||
<td><a href="/constructor/inputMediaStory">inputMediaStory</a></td>
|
||||
<td>Forwarded story</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/inputMediaWebPage">inputMediaWebPage</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
||||
|
|
|
@ -258,8 +258,16 @@
|
|||
<td>The <a href="/api/wallpapers">wallpaper »</a> of the current chat was changed.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/messageActionSetSameChatWallPaper">messageActionSetSameChatWallPaper</a></td>
|
||||
<td>The user applied a <a href="/api/wallpapers">wallpaper »</a> previously sent by the other user in a <a href="/constructor/messageActionSetChatWallPaper">messageActionSetChatWallPaper</a> message.</td>
|
||||
<td><a href="/constructor/messageActionGiftCode">messageActionGiftCode</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/messageActionGiveawayLaunch">messageActionGiveawayLaunch</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/messageActionGiveawayResults">messageActionGiveawayResults</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
|
|
@ -165,6 +165,10 @@
|
|||
<td><a href="/constructor/messageEntityCustomEmoji">messageEntityCustomEmoji</a></td>
|
||||
<td>Represents a custom emoji. <br>Note that this entity must wrap exactly one regular emoji (the one contained in <a href="/constructor/documentAttributeCustomEmoji">documentAttributeCustomEmoji</a>.<code>alt</code>) in the related text, otherwise the server will ignore it.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/messageEntityBlockquote">messageEntityBlockquote</a></td>
|
||||
<td>Message entity representing a block quote.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
||||
|
|
|
@ -141,6 +141,10 @@
|
|||
<td><a href="/constructor/messageMediaStory">messageMediaStory</a></td>
|
||||
<td>Represents a forwarded <a href="/api/stories">story</a> or a story mention.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/messageMediaGiveaway">messageMediaGiveaway</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#methods" id="methods" name="methods"><i class="anchor-icon"></i></a>Methods</h3>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -85,21 +85,6 @@
|
|||
<td>The preview of the webpage hasn't changed</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#methods" id="methods" name="methods"><i class="anchor-icon"></i></a>Methods</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/messages.getWebPage">messages.getWebPage</a></td>
|
||||
<td>Get <a href="https://instantview.telegram.org">instant view</a> page</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -126,6 +126,10 @@
|
|||
<td><a href="/method/stories.getChatsToSend">stories.getChatsToSend</a></td>
|
||||
<td>Obtain a list of channels where the user can post <a href="/api/stories">stories</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/channels.getChannelRecommendations">channels.getChannelRecommendations</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
||||
|
|
|
@ -94,6 +94,10 @@
|
|||
<td><a href="/method/messages.searchStickerSets">messages.searchStickerSets</a></td>
|
||||
<td>Search for stickersets</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/messages.searchEmojiStickerSets">messages.searchEmojiStickerSets</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -56,36 +56,6 @@
|
|||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code></code></pre></p>
|
||||
<h3><a class="anchor" href="#constructors" id="constructors" name="constructors"><i class="anchor-icon"></i></a>Constructors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Constructor</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/stories.boostersList">stories.boostersList</a></td>
|
||||
<td>Info about the users currently <a href="/api/boost">boosting</a> the channel.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#methods" id="methods" name="methods"><i class="anchor-icon"></i></a>Methods</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/stories.getBoostersList">stories.getBoostersList</a></td>
|
||||
<td>Obtain info about the users currently <a href="/api/boost">boosting</a> a channel, see <a href="/api/boost">here »</a> for more info about boosts.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/boost">Channel boosts</a></h4>
|
||||
<p>Telegram Premium users can grant their favorite channels additional features like the ability to post stories by giving them boosts.</p></div>
|
||||
|
|
|
@ -56,36 +56,6 @@
|
|||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code></code></pre></p>
|
||||
<h3><a class="anchor" href="#constructors" id="constructors" name="constructors"><i class="anchor-icon"></i></a>Constructors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Constructor</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/stories.boostsStatus">stories.boostsStatus</a></td>
|
||||
<td>The current <a href="/api/boost">boost status »</a> of a channel.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#methods" id="methods" name="methods"><i class="anchor-icon"></i></a>Methods</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/stories.getBoostsStatus">stories.getBoostsStatus</a></td>
|
||||
<td>Get the current <a href="/api/boost">boost status</a> of a channel, see <a href="/api/boost">here »</a> for more info on boosts.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/boost">Channel boosts</a></h4>
|
||||
<p>Telegram Premium users can grant their favorite channels additional features like the ability to post stories by giving them boosts.</p></div>
|
||||
|
|
Loading…
Reference in a new issue