Skip to content

Commit

Permalink
Merge pull request #1187 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
ernado committed Sep 13, 2023
2 parents e6aeb40 + 9f1b8d9 commit 5b52beb
Show file tree
Hide file tree
Showing 12 changed files with 947 additions and 91 deletions.
6 changes: 3 additions & 3 deletions _schema/layer.tl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Code generated by ./cmd/dltl, DO NOT EDIT.
//
// Source: https://raw.githubusercontent.com/telegramdesktop/tdesktop/dev/Telegram/SourceFiles/mtproto/scheme/layer.tl
// Layer: 162
// SHA256: 2ec2d6c95e8c4cccd15e284391ff502223bfbd733eb6e9f9b20d5ddbb2ea80f7
// Layer: 163
// SHA256: 3cfacf26e5eb161e3dc596e56aa39b1b6cdf52cfacc57fec56193edffa3b0731

// LAYER 162
// LAYER 163
16 changes: 9 additions & 7 deletions _schema/tdesktop.tl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Code generated by ./cmd/dltl, DO NOT EDIT.
//
// Source: https://raw.githubusercontent.com/telegramdesktop/tdesktop/dev/Telegram/SourceFiles/mtproto/scheme/api.tl
// SHA256: 042e13775257f716afcf769e5e4006bf5c487e3086342a13d3bc72f6fd2a4fde
// SHA256: 3bed831de44aa4ead0770bd7018f05e98be45c76c66432537eda3885a5d64528

boolFalse#bc799737 = Bool;

Expand Down Expand Up @@ -457,6 +457,8 @@ updateUserStatus#e5bdf8de user_id:long status:UserStatus = Update;

updateUserName#a7848924 user_id:long first_name:string last_name:string usernames:Vector<Username> = Update;

updateNewAuthorization#8951abef flags:# unconfirmed:flags.0?true hash:long date:flags.0?int device:flags.0?string location:flags.0?string = Update;

updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update;

updateEncryptedChatTyping#1710f156 chat_id:int = Update;
Expand Down Expand Up @@ -485,7 +487,7 @@ updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Up

updateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update;

updateReadMessagesContents#68c13933 messages:Vector<int> pts:int pts_count:int = Update;
updateReadMessagesContents#f8227181 flags:# messages:Vector<int> pts:int pts_count:int date:flags.0?int = Update;

updateChannelTooLong#108d941f flags:# channel_id:long pts:flags.0?int = Update;

Expand Down Expand Up @@ -929,7 +931,7 @@ webPage#e89c45b2 flags:# id:long url:string display_url:string hash:int type:fla

webPageNotModified#7311ca11 flags:# cached_page_views:flags.0?int = WebPage;

authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true encrypted_requests_disabled:flags.3?true call_requests_disabled:flags.4?true hash:long device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization;
authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true encrypted_requests_disabled:flags.3?true call_requests_disabled:flags.4?true unconfirmed:flags.5?true hash:long device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization;

account.authorizations#4bff8ea0 authorization_ttl_days:int authorizations:Vector<Authorization> = account.Authorizations;

Expand Down Expand Up @@ -2059,7 +2061,7 @@ attachMenuBotIconColor#4576f3f0 name:string color:int = AttachMenuBotIconColor;

attachMenuBotIcon#b2a7386b flags:# name:string icon:Document colors:flags.0?Vector<AttachMenuBotIconColor> = AttachMenuBotIcon;

attachMenuBot#c8aa2cd2 flags:# inactive:flags.0?true has_settings:flags.1?true request_write_access:flags.2?true bot_id:long short_name:string peer_types:Vector<AttachMenuPeerType> icons:Vector<AttachMenuBotIcon> = AttachMenuBot;
attachMenuBot#d90d8dfe flags:# inactive:flags.0?true has_settings:flags.1?true request_write_access:flags.2?true show_in_attach_menu:flags.3?true show_in_side_menu:flags.4?true side_menu_disclaimer_needed:flags.5?true bot_id:long short_name:string peer_types:flags.3?Vector<AttachMenuPeerType> icons:Vector<AttachMenuBotIcon> = AttachMenuBot;

attachMenuBotsNotModified#f1d88a5c = AttachMenuBots;

Expand Down Expand Up @@ -2225,7 +2227,7 @@ botAppNotModified#5da674b7 = BotApp;

botApp#95fcd1d6 flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document hash:long = BotApp;

messages.botApp#eb50adf5 flags:# inactive:flags.0?true request_write_access:flags.1?true app:BotApp = messages.BotApp;
messages.botApp#eb50adf5 flags:# inactive:flags.0?true request_write_access:flags.1?true has_settings:flags.2?true app:BotApp = messages.BotApp;

appWebViewResultUrl#3c1b4f0d url:string = AppWebViewResult;

Expand Down Expand Up @@ -2502,7 +2504,7 @@ account.getChatThemes#d638de89 hash:long = account.Themes;

account.setAuthorizationTTL#bf899aa0 authorization_ttl_days:int = Bool;

account.changeAuthorizationSettings#40f48462 flags:# hash:long encrypted_requests_disabled:flags.0?Bool call_requests_disabled:flags.1?Bool = Bool;
account.changeAuthorizationSettings#40f48462 flags:# confirmed:flags.3?true hash:long encrypted_requests_disabled:flags.0?Bool call_requests_disabled:flags.1?Bool = Bool;

account.getSavedRingtones#e1902288 hash:long = account.SavedRingtones;

Expand Down Expand Up @@ -2920,7 +2922,7 @@ messages.requestWebView#269dc2c1 flags:# from_bot_menu:flags.4?true silent:flags

messages.prolongWebView#b0d81a83 flags:# silent:flags.5?true peer:InputPeer bot:InputUser query_id:long reply_to:flags.0?InputReplyTo send_as:flags.13?InputPeer = Bool;

messages.requestSimpleWebView#299bec8e flags:# from_switch_webview:flags.1?true bot:InputUser url:string theme_params:flags.0?DataJSON platform:string = SimpleWebViewResult;
messages.requestSimpleWebView#1a46500a flags:# from_switch_webview:flags.1?true from_side_menu:flags.2?true bot:InputUser url:flags.3?string start_param:flags.4?string theme_params:flags.0?DataJSON platform:string = SimpleWebViewResult;

messages.sendWebViewResultMessage#a4314f5 bot_query_id:string result:InputBotInlineResult = WebViewMessageSent;

Expand Down
20 changes: 11 additions & 9 deletions _schema/telegram.tl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// Source: https://raw.githubusercontent.com/telegramdesktop/tdesktop/dev/Telegram/SourceFiles/mtproto/scheme/api.tl
// Merge: _schema/legacy.tl,_schema/layer.tl
// Layer: 162
// SHA256: 042e13775257f716afcf769e5e4006bf5c487e3086342a13d3bc72f6fd2a4fde
// Layer: 163
// SHA256: 3bed831de44aa4ead0770bd7018f05e98be45c76c66432537eda3885a5d64528

boolFalse#bc799737 = Bool;

Expand Down Expand Up @@ -459,6 +459,8 @@ updateUserStatus#e5bdf8de user_id:long status:UserStatus = Update;

updateUserName#a7848924 user_id:long first_name:string last_name:string usernames:Vector<Username> = Update;

updateNewAuthorization#8951abef flags:# unconfirmed:flags.0?true hash:long date:flags.0?int device:flags.0?string location:flags.0?string = Update;

updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update;

updateEncryptedChatTyping#1710f156 chat_id:int = Update;
Expand Down Expand Up @@ -487,7 +489,7 @@ updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Up

updateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update;

updateReadMessagesContents#68c13933 messages:Vector<int> pts:int pts_count:int = Update;
updateReadMessagesContents#f8227181 flags:# messages:Vector<int> pts:int pts_count:int date:flags.0?int = Update;

updateChannelTooLong#108d941f flags:# channel_id:long pts:flags.0?int = Update;

Expand Down Expand Up @@ -931,7 +933,7 @@ webPage#e89c45b2 flags:# id:long url:string display_url:string hash:int type:fla

webPageNotModified#7311ca11 flags:# cached_page_views:flags.0?int = WebPage;

authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true encrypted_requests_disabled:flags.3?true call_requests_disabled:flags.4?true hash:long device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization;
authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true encrypted_requests_disabled:flags.3?true call_requests_disabled:flags.4?true unconfirmed:flags.5?true hash:long device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization;

account.authorizations#4bff8ea0 authorization_ttl_days:int authorizations:Vector<Authorization> = account.Authorizations;

Expand Down Expand Up @@ -2061,7 +2063,7 @@ attachMenuBotIconColor#4576f3f0 name:string color:int = AttachMenuBotIconColor;

attachMenuBotIcon#b2a7386b flags:# name:string icon:Document colors:flags.0?Vector<AttachMenuBotIconColor> = AttachMenuBotIcon;

attachMenuBot#c8aa2cd2 flags:# inactive:flags.0?true has_settings:flags.1?true request_write_access:flags.2?true bot_id:long short_name:string peer_types:Vector<AttachMenuPeerType> icons:Vector<AttachMenuBotIcon> = AttachMenuBot;
attachMenuBot#d90d8dfe flags:# inactive:flags.0?true has_settings:flags.1?true request_write_access:flags.2?true show_in_attach_menu:flags.3?true show_in_side_menu:flags.4?true side_menu_disclaimer_needed:flags.5?true bot_id:long short_name:string peer_types:flags.3?Vector<AttachMenuPeerType> icons:Vector<AttachMenuBotIcon> = AttachMenuBot;

attachMenuBotsNotModified#f1d88a5c = AttachMenuBots;

Expand Down Expand Up @@ -2227,7 +2229,7 @@ botAppNotModified#5da674b7 = BotApp;

botApp#95fcd1d6 flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document hash:long = BotApp;

messages.botApp#eb50adf5 flags:# inactive:flags.0?true request_write_access:flags.1?true app:BotApp = messages.BotApp;
messages.botApp#eb50adf5 flags:# inactive:flags.0?true request_write_access:flags.1?true has_settings:flags.2?true app:BotApp = messages.BotApp;

appWebViewResultUrl#3c1b4f0d url:string = AppWebViewResult;

Expand Down Expand Up @@ -2504,7 +2506,7 @@ account.getChatThemes#d638de89 hash:long = account.Themes;

account.setAuthorizationTTL#bf899aa0 authorization_ttl_days:int = Bool;

account.changeAuthorizationSettings#40f48462 flags:# hash:long encrypted_requests_disabled:flags.0?Bool call_requests_disabled:flags.1?Bool = Bool;
account.changeAuthorizationSettings#40f48462 flags:# confirmed:flags.3?true hash:long encrypted_requests_disabled:flags.0?Bool call_requests_disabled:flags.1?Bool = Bool;

account.getSavedRingtones#e1902288 hash:long = account.SavedRingtones;

Expand Down Expand Up @@ -2922,7 +2924,7 @@ messages.requestWebView#269dc2c1 flags:# from_bot_menu:flags.4?true silent:flags

messages.prolongWebView#b0d81a83 flags:# silent:flags.5?true peer:InputPeer bot:InputUser query_id:long reply_to:flags.0?InputReplyTo send_as:flags.13?InputPeer = Bool;

messages.requestSimpleWebView#299bec8e flags:# from_switch_webview:flags.1?true bot:InputUser url:string theme_params:flags.0?DataJSON platform:string = SimpleWebViewResult;
messages.requestSimpleWebView#1a46500a flags:# from_switch_webview:flags.1?true from_side_menu:flags.2?true bot:InputUser url:flags.3?string start_param:flags.4?string theme_params:flags.0?DataJSON platform:string = SimpleWebViewResult;

messages.sendWebViewResultMessage#a4314f5 bot_query_id:string result:InputBotInlineResult = WebViewMessageSent;

Expand Down Expand Up @@ -3412,4 +3414,4 @@ test.useError#ee75af01 = Error;

test.useConfigSimple#f9b7b23d = help.ConfigSimple;

// LAYER 162
// LAYER 163
35 changes: 35 additions & 0 deletions tg/tl_account_change_authorization_settings_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5b52beb

Please sign in to comment.