diff --git a/data/corefork.telegram.org/api/layers.html b/data/corefork.telegram.org/api/layers.html index e39d446e13..e5fe7471a3 100644 --- a/data/corefork.telegram.org/api/layers.html +++ b/data/corefork.telegram.org/api/layers.html @@ -59,7 +59,7 @@ You can visit the schema for an updated list of constructo
Chat themes and sponsored messages, save video recordings of group calls and livestreams.
-chatFull#49a0a5d9 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true id:int about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall ttl_period:flags.14?int groupcall_default_join_as:flags.15?Peer theme_emoticon:flags.16?string = ChatFull;
userFull#d697ff05 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true user:User about:flags.1?string settings:PeerSettings profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string = UserFull;
channelFull#2f532f3c flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?int location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string = ChatFull;
@@ -116,7 +116,7 @@ You can visit the schema for an updated list of constructo
channels.getSponsoredMessages#ec210fbf channel:InputChannel = messages.SponsoredMessages;
2FA password reset for logged-in accounts, add a method to check the validity of the e-mail recovery code before use.
-account.password#185b184f flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes pending_reset_date:flags.5?int = account.Password;
groupCall#d597650c flags:# join_muted:flags.1?true can_change_join_muted:flags.2?true join_date_asc:flags.6?true schedule_start_subscribed:flags.8?true can_start_video:flags.9?true record_video_active:flags.11?true id:long access_hash:long participants_count:int title:flags.3?string stream_dc_id:flags.4?int record_start_date:flags.5?int schedule_date:flags.7?int unmuted_video_count:flags.10?int unmuted_video_limit:int version:int = GroupCall;
groupCallParticipantVideo#67753ac8 flags:# paused:flags.0?true endpoint:string source_groups:Vector<GroupCallParticipantVideoSourceGroup> audio_source:flags.1?int = GroupCallParticipantVideo;
@@ -161,18 +161,18 @@ You can visit the schema for an updated list of constructo
auth.checkRecoveryPassword#0d36bf79 code:string = Bool;
Custom placeholder for bot reply keyboards.
-replyKeyboardForceReply#86b40b08 flags:# single_use:flags.1?true selective:flags.2?true placeholder:flags.3?string = ReplyMarkup;
replyKeyboardMarkup#85dd99d1 flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector<KeyboardButtonRow> placeholder:flags.3?string = ReplyMarkup;
Group call screen sharing, short name suggestions for stickerpacks, scoped bot commands, imported stickers, wallpaper and group call improvements.
-help.appUpdate#ccbbce30 flags:# can_not_skip:flags.0?true id:int version:string text:string entities:Vector<MessageEntity> document:flags.1?Document url:flags.2?string sticker:flags.3?Document = help.AppUpdate;
wallPaperSettings#1dc1bca4 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int second_background_color:flags.4?int third_background_color:flags.5?int fourth_background_color:flags.6?int intensity:flags.3?int rotation:flags.4?int = WallPaperSettings;
inputWallPaperNoFile#967a462e id:long = InputWallPaper;
@@ -247,7 +247,7 @@ You can visit the schema for an updated list of constructo
Layer 128
Deprecate legacy profile picture locations, group call improvements.
See the file documentation article for more info on the new file constructors ».
-Scheme changes
+Schema changes
Changed Methods
- Added video_muted parameter, changed type of muted from flags.0?true to flags.0?Bool in phone.editGroupCallParticipant
@@ -267,7 +267,7 @@ See the file documentation article for mo
- Removed fileLocationToBeDeprecated
-Scheme
+Schema
userProfilePhoto#82d1f706 flags:# has_video:flags.0?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = UserProfilePhoto;
chatPhoto#1c6e1c11 flags:# has_video:flags.0?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = ChatPhoto;
photoSize#75c78e60 type:string w:int h:int size:int = PhotoSize;
@@ -280,7 +280,7 @@ See the file documentation article for mo
phone.editGroupCallParticipant#aec610e4 flags:# call:InputGroupCall participant:InputPeer muted:flags.0?Bool volume:flags.1?int raise_hand:flags.2?Bool video_muted:flags.3?Bool = Updates;
Layer 127
Scheduled group calls, payments in channels, payment tips, stripped profile picture thumbnails.
-Scheme changes
+Schema changes
New Methods
- Added phone.toggleGroupCallStartSubscription - Subscribe or unsubscribe to a scheduled group call
@@ -313,7 +313,7 @@ See the file documentation article for mo
- Added schedule_start_subscribed, schedule_date parameters in groupCall
- Added params parameter in groupCallParticipant
-Scheme
+Schema
userProfilePhoto#cc656077 flags:# has_video:flags.0?true photo_id:long photo_small:FileLocation photo_big:FileLocation stripped_thumb:flags.1?bytes dc_id:int = UserProfilePhoto;
chatPhoto#4790ee05 flags:# has_video:flags.0?true photo_small:FileLocation photo_big:FileLocation stripped_thumb:flags.1?bytes dc_id:int = ChatPhoto;
stickerSet#d7df217a flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector<PhotoSize> thumb_dc_id:flags.4?int thumb_version:flags.4?int count:int hash:int = StickerSet;
@@ -337,7 +337,7 @@ See the file documentation article for mo
phone.saveDefaultGroupCallJoinAs#575e1f8c peer:InputPeer join_as:InputPeer = Bool;
Layer 126
Ban channels in chats.
-Scheme changes
+Schema changes
Changed Methods
- Added participant parameter, removed user_id parameter in channels.getParticipant
@@ -350,7 +350,7 @@ See the file documentation article for mo
- Added peer parameter, removed user_id parameter in channelParticipantBanned
- Added peer parameter, removed user_id parameter in channelParticipantLeft
-Scheme
+Schema
channels.channelParticipants#9ab0feaf count:int participants:Vector<ChannelParticipant> chats:Vector<Chat> users:Vector<User> = channels.ChannelParticipants;
channels.channelParticipant#dfb80317 participant:ChannelParticipant chats:Vector<Chat> users:Vector<User> = channels.ChannelParticipant;
channelParticipantBanned#50a1dfd6 flags:# left:flags.0?true peer:Peer kicked_by:int date:int banned_rights:ChatBannedRights = ChannelParticipant;
@@ -360,7 +360,7 @@ See the file documentation article for mo
channels.editBanned#96e6cd81 channel:InputChannel participant:InputPeer banned_rights:ChatBannedRights = Updates;
Layer 125
Voice chats in channels.
-Scheme changes
+Schema changes
New Methods
- Added phone.toggleGroupCallRecord - Start or stop recording a group call: the recorded audio and video streams will be automatically sent to
Saved messages
(the chat with ourselves).
@@ -398,7 +398,7 @@ See the file documentation article for mo
- Added chats parameter in phone.groupCall
- Added chats parameter in phone.groupParticipants
-Scheme
+Schema
chatFull#8a1e2983 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true id:int about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall ttl_period:flags.14?int groupcall_default_join_as:flags.15?Peer = ChatFull;
updateChatUserTyping#86cadb6c chat_id:int from_id:Peer action:SendMessageAction = Update;
channelFull#548c3f93 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?int location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer = ChatFull;
@@ -423,7 +423,7 @@ See the file documentation article for mo
phone.exportGroupCallInvite#e6aa647f flags:# can_self_unmute:flags.0?true call:InputGroupCall = phone.ExportedGroupCallInvite;
Layer 124
Expiring invite links, self-destruction settings for all messages in a chat, gigagroups, chat import improvements.
-Scheme changes
+Schema changes
New Methods
- Added messages.getExportedChatInvites - Get info about the chat invites of a specific chat
@@ -479,7 +479,7 @@ See the file documentation article for mo
- Added ttl_period parameter in updateShortSentMessage
- Added ttl_period, pending_suggestions parameters in channelFull
-Scheme
+Schema
chatFull#f06c4018 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true id:int about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall ttl_period:flags.14?int = ChatFull;
message#bce383d2 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector<MessageEntity> views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = Message;
messageService#2b085862 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction ttl_period:flags.25?int = Message;
@@ -526,7 +526,7 @@ See the file documentation article for mo
messages.checkHistoryImportPeer#5dc60f03 peer:InputPeer = messages.CheckedHistoryImportPeer;
Layer 123
Import messages from foreign chat apps, delete history for both users upon deletion of a secret chat, delete phone call history, group call improvements.
-Scheme changes
+Schema changes
New Methods
- Added messages.deleteChat - Delete a chat
@@ -567,7 +567,7 @@ See the file documentation article for mo
- Removed chatInviteEmpty
- Removed inputPaymentCredentialsAndroidPay
-Scheme
+Schema
chatFull#f3474af6 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true id:int about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall = ChatFull;
messageEmpty#90a6ca84 flags:# id:int peer_id:flags.0?Peer = Message;
encryptedChatDiscarded#1e1c7c45 flags:# history_deleted:flags.0?true id:int = EncryptedChat;
@@ -594,7 +594,7 @@ See the file documentation article for mo
messages.startHistoryImport#b43df344 peer:InputPeer import_id:long = Bool;
Layer 122
Group calls.
-Scheme changes
+Schema changes
New Methods
- Added phone.createGroupCall - Create a group call or livestream
@@ -656,7 +656,7 @@ See the file documentation article for mo
- Removed updateChannelParticipant
-Scheme
+Schema
chat#3bda1bde flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true deactivated:flags.5?true call_active:flags.23?true call_not_empty:flags.24?true id:int title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel admin_rights:flags.14?ChatAdminRights default_banned_rights:flags.18?ChatBannedRights = Chat;
chatFull#0dc8c181 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true id:int about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall = ChatFull;
peerSettings#733f2961 flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true geo_distance:flags.6?int = PeerSettings;
@@ -705,16 +705,16 @@ See the file documentation article for mo
phone.checkGroupCall#b74a7bea call:InputGroupCall source:int = Bool;
Layer 121
Added SVG path previews for animated stickers.
-Scheme changes
+Schema changes
New Constructors
- Added photoPathSize - Messages with animated stickers can have a compressed svg (< 300 bytes) to show the outline of the sticker before fetching the actual lottie animation.
-Scheme
+Schema
photoPathSize#d8214d41 type:string bytes:bytes = PhotoSize;
Layer 120
Added message statistics, and a method to unpin all pinned messages in a chat.
-Scheme changes
+Schema changes
New Methods
- Added stats.getMessagePublicForwards - Obtains a list of messages, indicating to which other public channels was a channel message forwarded.
@@ -763,7 +763,7 @@ See the file documentation article for mo
- Added CHANNEL_MESSAGE_PLAYLIST -
{1} posted {2} music files
- Added CHANNEL_MESSAGE_DOCS -
{1} posted {2} files
-Scheme
+Schema
inputGeoPoint#48222faf flags:# lat:double long:double accuracy_radius:flags.0?int = InputGeoPoint;
geoPoint#b2a2f663 flags:# long:double lat:double access_hash:long accuracy_radius:flags.0?int = GeoPoint;
messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
@@ -787,7 +787,7 @@ See the file documentation article for mo
messages.unpinAllMessages#f025bc8b peer:InputPeer = messages.AffectedHistory;
Layer 119
Added message threads and comment sections in channel posts.
-Scheme changes
+Schema changes
New Methods
- Added messages.getReplies - Get messages in a reply thread
@@ -836,7 +836,7 @@ See the file documentation article for mo
- Removed contactBlocked
- Removed updateUserBlocked
-Scheme
+Schema
message#58ae39c9 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector<MessageEntity> views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long restriction_reason:flags.22?Vector<RestrictionReason> = Message;
messageService#286fa604 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction = Message;
contacts.blocked#0ade1591 blocked:Vector<PeerBlocked> chats:Vector<Chat> users:Vector<User> = contacts.Blocked;
@@ -871,7 +871,7 @@ See the file documentation article for mo
contacts.blockFromReplies#29a8962c flags:# delete_message:flags.0?true delete_history:flags.1?true report_spam:flags.2?true msg_id:int = Updates;
Layer 118
Added method for fetching country names and phone patterns.
-Scheme changes
+Schema changes
New Methods
- Added help.getCountriesList - Get name, ISO code, localized name and phone codes/patterns of all available countries
@@ -893,7 +893,7 @@ See the file documentation article for mo
- Added flags, requires_password parameters in keyboardButtonCallback
-Scheme
+Schema
keyboardButtonCallback#35bbdb6b flags:# requires_password:flags.0?true text:string data:bytes = KeyboardButton;
help.countryCode#4203c5ef flags:# country_code:string prefixes:flags.0?Vector<string> patterns:flags.1?Vector<string> = help.CountryCode;
help.country#c3878e23 flags:# hidden:flags.0?true iso2:string default_name:string name:flags.1?string country_codes:Vector<help.CountryCode> = help.Country;
@@ -906,16 +906,16 @@ See the file documentation article for mo
help.getCountriesList#735787a8 lang_code:string hash:int = help.CountriesList;
Layer 117
Added WebRTC endpoint constructors.
-Scheme changes
+Schema changes
New Constructors
- Added phoneConnectionWebrtc - WebRTC connection parameters
-Scheme
+Schema
phoneConnectionWebrtc#635fe375 flags:# turn:flags.0?true stun:flags.1?true id:long ip:string ipv6:string port:int username:string password:string = PhoneConnection;
Layer 116
Added supergroup statistics and global privacy settings.
-Scheme changes
+Schema changes
New Methods
- Added stats.getMegagroupStats - Get supergroup statistics
@@ -947,7 +947,7 @@ See the file documentation article for mo
- Added flags, folder_id parameters in encryptedChatRequested
- Added flags, video_start_ts parameters in videoSize
-Scheme
+Schema
inputChatUploadedPhoto#c642724e flags:# file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double = InputChatPhoto;
userProfilePhoto#69d3ab26 flags:# has_video:flags.0?true photo_id:long photo_small:FileLocation photo_big:FileLocation dc_id:int = UserProfilePhoto;
chatPhoto#d20b9f3c flags:# has_video:flags.0?true photo_small:FileLocation photo_big:FileLocation dc_id:int = ChatPhoto;
@@ -970,16 +970,16 @@ See the file documentation article for mo
help.dismissSuggestion#077fa99f suggestion:string = Bool;
Layer 115
Added a chat invitation that also allows peeking into the group to read messages without joining it.
-Scheme changes
+Schema changes
New Constructors
- Added chatInvitePeek - A chat invitation that also allows peeking into the group to read messages without joining it.
-Scheme
+Schema
chatInvitePeek#61695cb0 chat:Chat expires:int = ChatInvite;
Layer 114
Added WebRTC signaling methods.
-Scheme changes
+Schema changes
New Methods
- Added phone.sendSignalingData - Send VoIP signaling data
@@ -1019,7 +1019,7 @@ See the file documentation article for mo
- Removed inputMediaGifExternal
- Removed messages.foundGifs
-Scheme
+Schema
userFull#edf17c12 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true user:User about:flags.1?string settings:PeerSettings profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int = UserFull;
inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true force_file:flags.4?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector<DocumentAttribute> stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = InputMedia;
document#1e87342b flags:# id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumbs:flags.0?Vector<PhotoSize> video_thumbs:flags.1?Vector<VideoSize> dc_id:int attributes:Vector<DocumentAttribute> = Document;
@@ -1040,7 +1040,7 @@ See the file documentation article for mo
Layer 113
Public Service Announcement constructors and better PUSH notifications.
Notice that all PINNED_*
PUSH notifications have two variants: one for groups, and one for channels.
-Scheme changes
+Schema changes
New Methods
- Added help.getPromoData - Get MTProxy/Public Service Announcement information
@@ -1125,7 +1125,7 @@ Notice that all PINNED_*
CHAT_MESSAGE_GAME_SCORE
- Added scheduled additional parameter in CHAT_MESSAGE_INVOICE
-Scheme
+Schema
messageFwdHeader#353a686b flags:# from_id:flags.0?int from_name:flags.5?string date:int channel_id:flags.1?int channel_post:flags.2?int post_author:flags.3?string saved_from_peer:flags.4?Peer saved_from_msg_id:flags.4?int psa_type:flags.6?string = MessageFwdHeader;
help.promoDataEmpty#98f6ac75 expires:int = help.PromoData;
help.promoData#8c39793f flags:# proxy:flags.0?true expires:int peer:Peer chats:Vector<Chat> users:Vector<User> psa_type:flags.1?string psa_message:flags.2?string = help.PromoData;
@@ -1133,7 +1133,7 @@ Notice that all PINNED_*
help.getPromoData#c0977421 = help.PromoData;
help.hidePromoData#1e251c95 peer:InputPeer = Bool;
Layer 112
-Scheme changes
+Schema changes
New Methods
- Added messages.getOldFeaturedStickers - Method for fetching previously featured stickers
@@ -1149,7 +1149,7 @@ Notice that all PINNED_*
messageMediaDice
- Added emoticon parameter in inputStickerSetDice
-Scheme
+Schema
messages.featuredStickersNotModified#c6dc0c66 count:int = messages.FeaturedStickers;
messages.featuredStickers#b6abc341 hash:int count:int sets:Vector<StickerSetCovered> unread:Vector<long> = messages.FeaturedStickers;
poll#86e18161 id:long flags:# closed:flags.0?true public_voters:flags.1?true multiple_choice:flags.2?true quiz:flags.3?true question:string answers:Vector<PollAnswer> close_period:flags.4?int close_date:flags.5?int = Poll;
@@ -1163,7 +1163,7 @@ Notice that all PINNED_*
messages.getOldFeaturedStickers#5fe7025b offset:int limit:int hash:int = messages.FeaturedStickers;
Layer 111
Folders, channel stats, bot and sticker improvements
-Scheme changes
+Schema changes
New Methods
- Added messages.getDialogFilters - Get folders
@@ -1206,7 +1206,7 @@ Notice that all PINNED_*
phoneCallProtocol
- Added views parameter in page
-Scheme
+Schema
channelFull#f0e6672a flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_view_stats:flags.12?true can_set_location:flags.16?true has_scheduled:flags.19?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?int location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int = ChatFull;
webPageNotModified#7311ca11 flags:# cached_page_views:flags.0?int = WebPage;
phoneCallProtocol#fc878fc8 flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int library_versions:Vector<string> = PhoneCallProtocol;
@@ -1240,7 +1240,7 @@ Notice that all PINNED_*
bots.setBotCommands#805d46f6 commands:Vector<BotCommand> = Bool;
Layer 110
Credit card information
-Scheme changes
+Schema changes
New Methods
- Added payments.getBankCardData - Get info about a credit card
@@ -1257,7 +1257,7 @@ Notice that all PINNED_*
payments.bankCardData - Credit card info, provided by the card's bank(s)
- Added peerSelfLocated - Current peer
-Scheme
+Schema
messageEntityBankCard#761e6af4 offset:int length:int = MessageEntity;
bankCardOpenUrl#f568028a url:string name:string = BankCardOpenUrl;
payments.bankCardData#3e24e573 title:string open_urls:Vector<BankCardOpenUrl> = payments.BankCardData;
@@ -1268,7 +1268,7 @@ Notice that all PINNED_*
payments.getBankCardData#2e79d779 number:string = payments.BankCardData;
Layer 109
Non-anonymous polls, improved sticker management
-Scheme changes
+Schema changes
New Methods
- Added messages.getPollVotes - Get poll results for non-anonymous polls
@@ -1292,7 +1292,7 @@ Notice that all PINNED_*
pollResults
- Added flags, correct_answers parameters in inputMediaPoll
-Scheme
+Schema
pollResults#c87024a2 flags:# min:flags.0?true results:flags.1?Vector<PollAnswerVoters> total_voters:flags.2?int recent_voters:flags.3?Vector<int> = PollResults;
inputMediaPoll#abe9ca25 flags:# poll:Poll correct_answers:flags.0?Vector<bytes> = InputMedia;
updateMessagePollVote#42f88f2c poll_id:long user_id:int options:Vector<bytes> = Update;
@@ -1307,7 +1307,7 @@ Notice that all PINNED_*
messages.toggleStickerSets#b5052fea flags:# uninstall:flags.0?true archive:flags.1?true unarchive:flags.2?true stickersets:Vector<InputStickerSet> = Bool;
Layer 108
Login with QR-code, sensitive content settings, quizes, multiple-choice and public polls, get inactive chats, improved wallpapers and themes.
-Scheme changes
+Schema changes
New Methods
- Added auth.exportLoginToken - Generate a login token, for login via QR code.
@@ -1358,7 +1358,7 @@ Notice that all PINNED_*
Scheme
+Schema
webPage#e89c45b2 flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page attributes:flags.12?Vector<WebPageAttribute> = WebPage;
poll#d5529d06 id:long flags:# closed:flags.0?true public_voters:flags.1?true multiple_choice:flags.2?true quiz:flags.3?true question:string answers:Vector<PollAnswer> = Poll;
pollAnswerVoters#3b6ddad2 flags:# chosen:flags.0?true correct:flags.1?true option:bytes voters:int = PollAnswerVoters;
@@ -1397,7 +1397,7 @@ Notice that all PINNED_*
Layer 105
The API underwent huge changes, a full reread of the documentation is required.
Layer 23
-Scheme changes
+Schema changes
New Methods
- Added account.getPrivacy - Get privacy settings of current account
@@ -1462,7 +1462,7 @@ Notice that all PINNED_*
inputMediaUploadedThumbDocument
- Added attributes parameter, removed user_id, file_name parameters in document
-Scheme
+Schema
contactStatus#d3680c61 user_id:int status:UserStatus = ContactStatus;
config#7dae33e0 date:int expires:int test_mode:Bool this_dc:int dc_options:Vector<DcOption> chat_big_size:int chat_size_max:int broadcast_size_max:int disabled_features:Vector<DisabledFeature> = Config;
inputMediaUploadedDocument#ffe76b78 file:InputFile mime_type:string attributes:Vector<DocumentAttribute> = InputMedia;
@@ -1515,7 +1515,7 @@ Notice that all PINNED_*
messages.getStickers#ae22e045 emoticon:string hash:string = messages.Stickers;
messages.getAllStickers#aa3bc868 hash:string = messages.AllStickers;
account.updateDeviceLocked#38df3532 period:int = Bool;
-End-to-end scheme changes
+End-to-end schema changes
New Constructors
- Added decryptedMessageActionRequestKey - Request rekeying, see rekeying process
@@ -1536,7 +1536,7 @@ Notice that all PINNED_*
fileLocation
- Added decryptedMessageMediaExternalDocument - Non-e2e documented forwarded from non-secret chat
-End-to-end scheme
+End-to-end schema
===20===
decryptedMessageActionRequestKey#f3c9611b exchange_id:long g_a:bytes = DecryptedMessageAction;
decryptedMessageActionAcceptKey#6fe1735b exchange_id:long g_b:bytes key_fingerprint:long = DecryptedMessageAction;
diff --git a/data/corefork.telegram.org/api/passport.html b/data/corefork.telegram.org/api/passport.html
index 2c933b2801..63395f036e 100644
--- a/data/corefork.telegram.org/api/passport.html
+++ b/data/corefork.telegram.org/api/passport.html
@@ -78,7 +78,7 @@ Look at the Passport Manual to see how to request passpo
Requesting Information
Receiving information
-Scheme:
+Schema:
secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData;
securePlainPhone#7d6099dd phone:string = SecurePlainData;
diff --git a/data/corefork.telegram.org/api/stats.html b/data/corefork.telegram.org/api/stats.html
index 00ff654fca..2516688c20 100644
--- a/data/corefork.telegram.org/api/stats.html
+++ b/data/corefork.telegram.org/api/stats.html
@@ -43,7 +43,7 @@
Telegram offers detailed channel statistics for channels and supergroups.
Channel statistics
-Scheme:
+Schema:
statsDateRangeDays#b637edaf min_date:int max_date:int = StatsDateRangeDays;
statsAbsValueAndPrev#cb43acde current:double previous:double = StatsAbsValueAndPrev;
@@ -80,7 +80,7 @@ Note that in this case, current
refers to the period
i
- Graphs: graphs are described below ».
Supergroup statistics
-Scheme:
+Schema:
statsGroupTopPoster#9d04af9b user_id:long messages:int avg_chars:int = StatsGroupTopPoster;
statsGroupTopInviter#535f779d user_id:long invitations:int = StatsGroupTopInviter;
statsGroupTopAdmin#d7584c87 user_id:long deleted:int kicked:int banned:int = StatsGroupTopAdmin;
diff --git a/data/corefork.telegram.org/constructor/updateUserName.html b/data/corefork.telegram.org/constructor/updateUserName.html
index 01e9a88daa..dbef0ee06d 100644
--- a/data/corefork.telegram.org/constructor/updateUserName.html
+++ b/data/corefork.telegram.org/constructor/updateUserName.html
@@ -91,7 +91,7 @@
userFull
Extended user info
Layers
-Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.
+Below you will find information on schema changes. For more details on the use of layers, see Invoking API methods.
diff --git a/data/corefork.telegram.org/constructor/updateUserTyping.html b/data/corefork.telegram.org/constructor/updateUserTyping.html
index f81c877a1b..5450dcd762 100644
--- a/data/corefork.telegram.org/constructor/updateUserTyping.html
+++ b/data/corefork.telegram.org/constructor/updateUserTyping.html
@@ -79,7 +79,7 @@
Related pages
Layers
-Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.
Below you will find information on schema changes. For more details on the use of layers, see Invoking API methods.
diff --git a/data/corefork.telegram.org/constructor/updates.state b/data/corefork.telegram.org/constructor/updates.state index b5b090da83..7a3626e915 100644 --- a/data/corefork.telegram.org/constructor/updates.state +++ b/data/corefork.telegram.org/constructor/updates.state @@ -96,7 +96,7 @@New feature for end-to-end-encrypted messaging.
Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.
+Below you will find information on schema changes. For more details on the use of layers, see Invoking API methods.
diff --git a/data/corefork.telegram.org/constructor/userProfilePhoto.html b/data/corefork.telegram.org/constructor/userProfilePhoto.html index 073ea91179..4068d0e13f 100644 --- a/data/corefork.telegram.org/constructor/userProfilePhoto.html +++ b/data/corefork.telegram.org/constructor/userProfilePhoto.html @@ -96,7 +96,7 @@How to transfer large data batches correctly.
Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.
+Below you will find information on schema changes. For more details on the use of layers, see Invoking API methods.
diff --git a/data/corefork.telegram.org/method/messages.setTyping b/data/corefork.telegram.org/method/messages.setTyping index afc2894e47..211216bbc7 100644 --- a/data/corefork.telegram.org/method/messages.setTyping +++ b/data/corefork.telegram.org/method/messages.setTyping @@ -162,7 +162,7 @@Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.
Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.
+Below you will find information on schema changes. For more details on the use of layers, see Invoking API methods.
User actions. Use this to provide users with detailed info about their chat partners' actions: typing or sending attachments of all kinds.
diff --git a/data/corefork.telegram.org/passport/encryption.html b/data/corefork.telegram.org/passport/encryption.html index 02678c97bb..a4cf14cbac 100644 --- a/data/corefork.telegram.org/passport/encryption.html +++ b/data/corefork.telegram.org/passport/encryption.html @@ -50,7 +50,7 @@When using Telegram Passport normally, it must be downloaded and decrypted for use as described in Passport Secret Decryption.
The passport secret must also be downloaded, re-encrypted and re-uploaded as described in Passport Secret Encryption if a new, more secure encryption algorithm is defined in a newer version of Telegram or the 2FA password is updated.
First of all, server-side passport parameters are fetched, scheme:
+First of all, server-side passport parameters are fetched, schema:
account.password#185b184f flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes pending_reset_date:flags.5?int = account.Password;
securePasswordKdfAlgoUnknown#4a8537 = SecurePasswordKdfAlgo;
@@ -62,7 +62,7 @@
account.getPassword#548a30f5 = account.Password;
When Telegram Passport is first used, the client generates a passport_secret (a 32-byte number with the modulo 255 sum of bytes equal to 239), using a part of server-generated random secure_random from account.password as an additional source of entropy for OpenSSL (when re-encrypting the passport_secret with a more secure algorithm or after a 2FA password change, the previous passport_secret is used, instead). -Then passport_secret is then encrypted using the user's password and hashed using the scheme and parameters specified in the new_algo field of account.password.
+Then passport_secret is then encrypted using the user's password and hashed using the schema and parameters specified in the new_algo field of account.password.The server should always return a securePasswordKdfAlgoPBKDF2HMACSHA512iter100000
constructor in the new_algo
field.
If securePasswordKdfAlgoUnknown
is returned, the remotely stored secret is encrypted using a new algorithm, not supported by the current client: the user should update their app.
The other constructors may be used only when decrypting old passport parameters generated by a legacy client; in this case, the passport secret should be re-encrypted and updated using new_algo
.
The encrypted_passport_secret is stored on the server together with the passport_secret_salt and the fingerprint of the secret passport_secret_fingerprint: -Scheme:
+Schema:boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
@@ -134,7 +134,7 @@ Scheme:
In case the password is changed or a more secure algorithm is introduced in an update of the API, the client re-encrypts the passport_secret using the new password.
If the password is disabled, all Telegram Passport data is lost.
Passport Secret Decryption
-Scheme:
+Schema:
securePasswordKdfAlgoUnknown#4a8537 = SecurePasswordKdfAlgo;
securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0 salt:bytes = SecurePasswordKdfAlgo;
securePasswordKdfAlgoSHA512#86471d92 salt:bytes = SecurePasswordKdfAlgo;
@@ -219,7 +219,7 @@ iv = slice( secret_hash, 32, 16 )
encrypted_data together with the encrypted_data_secret and data_hash are saved on the server:
-Scheme:
+Schema:
inputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile;
inputSecureFile#5367e5be id:long access_hash:long = InputSecureFile;
@@ -365,7 +365,7 @@ To verify a phone number or email and use it in Telegram Passport, use the appro
secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData;
inputSecureValue#db21d0a7 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile translation:flags.6?Vector<InputSecureFile> files:flags.4?Vector<InputSecureFile> plain_data:flags.5?SecurePlainData = InputSecureValue;
-The scheme for the inputSecureValue constructor defines the constructor to use for each field.
+The schema for the inputSecureValue constructor defines the constructor to use for each field.