Skip to content

Commit

Permalink
Merge pull request #685 from gotd/feat/update-schema
Browse files Browse the repository at this point in the history
Update Telegram schema to the latest layer
  • Loading branch information
tdakkota committed Feb 1, 2022
2 parents 869a639 + 3ef793e commit 7b07af5
Show file tree
Hide file tree
Showing 22 changed files with 2,305 additions and 312 deletions.
30 changes: 20 additions & 10 deletions _schema/tdesktop.tl
@@ -1,8 +1,8 @@
// Code generated by ./cmd/dltl, DO NOT EDIT.
//
// Source: https://raw.githubusercontent.com/telegramdesktop/tdesktop/dev/Telegram/Resources/tl/api.tl
// Layer: 137
// SHA256: dc2233feb0976164571345f011fa531b1560a1c76531866f48bd2e504ad3a015
// Layer: 138
// SHA256: e4394d689aae7a56d9b81f444df7f182ec54f5b8eb2a0289a7ef9b19cfecabff

boolFalse#bc799737 = Bool;

Expand Down Expand Up @@ -272,7 +272,7 @@ messageActionSetChatTheme#aa786345 emoticon:string = MessageAction;

messageActionChatJoinedByRequest#ebbca3cb = MessageAction;

dialog#2c171f72 flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog;
dialog#a8edd0f5 flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog;

dialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog;

Expand Down Expand Up @@ -878,7 +878,7 @@ inputStickerSetDice#e67f520e emoticon:string = InputStickerSet;

inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;

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;
stickerSet#d7df217a flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true gifs:flags.6?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;

messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;

Expand Down Expand Up @@ -1894,18 +1894,22 @@ auth.loggedOut#c3a2835f flags:# future_auth_token:flags.0?bytes = auth.LoggedOut

reactionCount#6fb250d1 flags:# chosen:flags.0?true reaction:string count:int = ReactionCount;

messageReactions#87b6e36 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactons:flags.1?Vector<MessageUserReaction> = MessageReactions;
messageReactions#4f2b9479 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactions:flags.1?Vector<MessagePeerReaction> = MessageReactions;

messageUserReaction#932844fa user_id:long reaction:string = MessageUserReaction;

messages.messageReactionsList#a366923c flags:# count:int reactions:Vector<MessageUserReaction> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;
messages.messageReactionsList#31bd492d flags:# count:int reactions:Vector<MessagePeerReaction> chats:Vector<Chat> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;

availableReaction#c077ec01 flags:# inactive:flags.0?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document around_animation:flags.1?Document center_icon:flags.1?Document = AvailableReaction;

messages.availableReactionsNotModified#9f071957 = messages.AvailableReactions;

messages.availableReactions#768e3aad hash:int reactions:Vector<AvailableReaction> = messages.AvailableReactions;

messages.translateNoResult#67ca4737 = messages.TranslatedText;

messages.translateResultText#a214f7d0 text:string = messages.TranslatedText;

messagePeerReaction#51b67eff flags:# big:flags.0?true unread:flags.1?true peer_id:Peer reaction:string = MessagePeerReaction;


---functions---

Expand Down Expand Up @@ -2451,7 +2455,7 @@ messages.toggleNoForwards#b11eafa2 peer:InputPeer enabled:Bool = Updates;

messages.saveDefaultSendAs#ccfddf96 peer:InputPeer send_as:InputPeer = Bool;

messages.sendReaction#25690ce4 flags:# peer:InputPeer msg_id:int reaction:flags.0?string = Updates;
messages.sendReaction#25690ce4 flags:# big:flags.1?true peer:InputPeer msg_id:int reaction:flags.0?string = Updates;

messages.getMessagesReactions#8bba90e6 peer:InputPeer id:Vector<int> = Updates;

Expand All @@ -2463,6 +2467,12 @@ messages.getAvailableReactions#18dea0ac hash:int = messages.AvailableReactions;

messages.setDefaultReaction#d960c4d4 reaction:string = Bool;

messages.translateText#24ce6dee flags:# peer:flags.0?InputPeer msg_id:flags.0?int text:flags.1?string from_lang:flags.2?string to_lang:string = messages.TranslatedText;

messages.getUnreadReactions#e85bae1a peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;

messages.readReactions#82e251d7 peer:InputPeer = messages.AffectedHistory;

updates.getState#edd4882a = updates.State;

updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference;
Expand Down Expand Up @@ -2733,4 +2743,4 @@ stats.getMessagePublicForwards#5630281b channel:InputChannel msg_id:int offset_r

stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;

// LAYER 137
// LAYER 138
34 changes: 22 additions & 12 deletions _schema/tdlib.tl
@@ -1,8 +1,8 @@
// Code generated by ./cmd/dltl, DO NOT EDIT.
//
// Source: https://raw.githubusercontent.com/tdlib/td/master/td/generate/scheme/telegram_api.tl
// Layer: 136
// SHA256: 45d8acb38ffc96fc46e51d5fcbabfeef9ed2bdc53152b9821ddb23f5e0b40be5
// Layer: 138
// SHA256: 9039c42865318b46a9dcb8c885d092b4305dd2bf74c3fbb6374db8a4298ecbbc

int#a8509bda ? = Int;

Expand Down Expand Up @@ -302,7 +302,7 @@ messageActionSetChatTheme#aa786345 emoticon:string = MessageAction;

messageActionChatJoinedByRequest#ebbca3cb = MessageAction;

dialog#2c171f72 flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog;
dialog#a8edd0f5 flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog;

dialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog;

Expand Down Expand Up @@ -908,7 +908,7 @@ inputStickerSetDice#e67f520e emoticon:string = InputStickerSet;

inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;

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;
stickerSet#d7df217a flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true videos:flags.6?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;

messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;

Expand Down Expand Up @@ -1924,18 +1924,22 @@ auth.loggedOut#c3a2835f flags:# future_auth_token:flags.0?bytes = auth.LoggedOut

reactionCount#6fb250d1 flags:# chosen:flags.0?true reaction:string count:int = ReactionCount;

messageReactions#87b6e36 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactons:flags.1?Vector<MessageUserReaction> = MessageReactions;
messageReactions#4f2b9479 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactions:flags.1?Vector<MessagePeerReaction> = MessageReactions;

messageUserReaction#932844fa user_id:long reaction:string = MessageUserReaction;
messages.messageReactionsList#31bd492d flags:# count:int reactions:Vector<MessagePeerReaction> chats:Vector<Chat> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;

messages.messageReactionsList#a366923c flags:# count:int reactions:Vector<MessageUserReaction> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;

availableReaction#21d7c4b flags:# inactive:flags.0?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document = AvailableReaction;
availableReaction#c077ec01 flags:# inactive:flags.0?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document around_animation:flags.1?Document center_icon:flags.1?Document = AvailableReaction;

messages.availableReactionsNotModified#9f071957 = messages.AvailableReactions;

messages.availableReactions#768e3aad hash:int reactions:Vector<AvailableReaction> = messages.AvailableReactions;

messages.translateNoResult#67ca4737 = messages.TranslatedText;

messages.translateResultText#a214f7d0 text:string = messages.TranslatedText;

messagePeerReaction#51b67eff flags:# big:flags.0?true unread:flags.1?true peer_id:Peer reaction:string = MessagePeerReaction;


---functions---

Expand Down Expand Up @@ -2481,7 +2485,7 @@ messages.toggleNoForwards#b11eafa2 peer:InputPeer enabled:Bool = Updates;

messages.saveDefaultSendAs#ccfddf96 peer:InputPeer send_as:InputPeer = Bool;

messages.sendReaction#25690ce4 flags:# peer:InputPeer msg_id:int reaction:flags.0?string = Updates;
messages.sendReaction#25690ce4 flags:# big:flags.1?true peer:InputPeer msg_id:int reaction:flags.0?string = Updates;

messages.getMessagesReactions#8bba90e6 peer:InputPeer id:Vector<int> = Updates;

Expand All @@ -2493,6 +2497,12 @@ messages.getAvailableReactions#18dea0ac hash:int = messages.AvailableReactions;

messages.setDefaultReaction#d960c4d4 reaction:string = Bool;

messages.translateText#24ce6dee flags:# peer:flags.0?InputPeer msg_id:flags.0?int text:flags.1?string from_lang:flags.2?string to_lang:string = messages.TranslatedText;

messages.getUnreadReactions#e85bae1a peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;

messages.readReactions#82e251d7 peer:InputPeer = messages.AffectedHistory;

updates.getState#edd4882a = updates.State;

updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference;
Expand Down Expand Up @@ -2669,7 +2679,7 @@ payments.clearSavedInfo#d83d70c1 flags:# credentials:flags.0?true info:flags.1?t

payments.getBankCardData#2e79d779 number:string = payments.BankCardData;

stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true animated:flags.1?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector<InputStickerSetItem> software:flags.3?string = messages.StickerSet;
stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true animated:flags.1?true videos:flags.4?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector<InputStickerSetItem> software:flags.3?string = messages.StickerSet;

stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet;

Expand Down Expand Up @@ -2763,4 +2773,4 @@ stats.getMessagePublicForwards#5630281b channel:InputChannel msg_id:int offset_r

stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;

// LAYER 136
// LAYER 138
30 changes: 20 additions & 10 deletions _schema/telegram.tl
Expand Up @@ -2,8 +2,8 @@
//
// Source: https://raw.githubusercontent.com/telegramdesktop/tdesktop/dev/Telegram/Resources/tl/api.tl
// Merge: _schema/legacy.tl
// Layer: 137
// SHA256: dc2233feb0976164571345f011fa531b1560a1c76531866f48bd2e504ad3a015
// Layer: 138
// SHA256: e4394d689aae7a56d9b81f444df7f182ec54f5b8eb2a0289a7ef9b19cfecabff

boolFalse#bc799737 = Bool;

Expand Down Expand Up @@ -273,7 +273,7 @@ messageActionSetChatTheme#aa786345 emoticon:string = MessageAction;

messageActionChatJoinedByRequest#ebbca3cb = MessageAction;

dialog#2c171f72 flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog;
dialog#a8edd0f5 flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog;

dialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog;

Expand Down Expand Up @@ -879,7 +879,7 @@ inputStickerSetDice#e67f520e emoticon:string = InputStickerSet;

inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;

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;
stickerSet#d7df217a flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true gifs:flags.6?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;

messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;

Expand Down Expand Up @@ -1895,18 +1895,22 @@ auth.loggedOut#c3a2835f flags:# future_auth_token:flags.0?bytes = auth.LoggedOut

reactionCount#6fb250d1 flags:# chosen:flags.0?true reaction:string count:int = ReactionCount;

messageReactions#87b6e36 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactons:flags.1?Vector<MessageUserReaction> = MessageReactions;
messageReactions#4f2b9479 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactions:flags.1?Vector<MessagePeerReaction> = MessageReactions;

messageUserReaction#932844fa user_id:long reaction:string = MessageUserReaction;

messages.messageReactionsList#a366923c flags:# count:int reactions:Vector<MessageUserReaction> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;
messages.messageReactionsList#31bd492d flags:# count:int reactions:Vector<MessagePeerReaction> chats:Vector<Chat> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;

availableReaction#c077ec01 flags:# inactive:flags.0?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document around_animation:flags.1?Document center_icon:flags.1?Document = AvailableReaction;

messages.availableReactionsNotModified#9f071957 = messages.AvailableReactions;

messages.availableReactions#768e3aad hash:int reactions:Vector<AvailableReaction> = messages.AvailableReactions;

messages.translateNoResult#67ca4737 = messages.TranslatedText;

messages.translateResultText#a214f7d0 text:string = messages.TranslatedText;

messagePeerReaction#51b67eff flags:# big:flags.0?true unread:flags.1?true peer_id:Peer reaction:string = MessagePeerReaction;


---functions---

Expand Down Expand Up @@ -2452,7 +2456,7 @@ messages.toggleNoForwards#b11eafa2 peer:InputPeer enabled:Bool = Updates;

messages.saveDefaultSendAs#ccfddf96 peer:InputPeer send_as:InputPeer = Bool;

messages.sendReaction#25690ce4 flags:# peer:InputPeer msg_id:int reaction:flags.0?string = Updates;
messages.sendReaction#25690ce4 flags:# big:flags.1?true peer:InputPeer msg_id:int reaction:flags.0?string = Updates;

messages.getMessagesReactions#8bba90e6 peer:InputPeer id:Vector<int> = Updates;

Expand All @@ -2464,6 +2468,12 @@ messages.getAvailableReactions#18dea0ac hash:int = messages.AvailableReactions;

messages.setDefaultReaction#d960c4d4 reaction:string = Bool;

messages.translateText#24ce6dee flags:# peer:flags.0?InputPeer msg_id:flags.0?int text:flags.1?string from_lang:flags.2?string to_lang:string = messages.TranslatedText;

messages.getUnreadReactions#e85bae1a peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;

messages.readReactions#82e251d7 peer:InputPeer = messages.AffectedHistory;

updates.getState#edd4882a = updates.State;

updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference;
Expand Down Expand Up @@ -2766,4 +2776,4 @@ test.useError#ee75af01 = Error;

test.useConfigSimple#f9b7b23d = help.ConfigSimple;

// LAYER 137
// LAYER 138

0 comments on commit 7b07af5

Please sign in to comment.