Changes on: https://raw.githubusercontent.com/tdlib/td/master/td/generate/scheme/td_api.tl at 9/15/2021, 7:10:26 AM

Files changed (1) hide show
  1. scheme.td-api.tl.tdlib +15 -16
scheme.td-api.tl.tdlib CHANGED
@@ -935,9 +935,9 @@
935
  //@last_read_outbox_message_id Identifier of the last read outgoing message
936
  //@unread_mention_count Number of unread messages with a mention/reply in the chat
937
  //@notification_settings Notification settings for this chat
938
  //@message_ttl_setting Current message Time To Live setting (self-destruct timer) for the chat; 0 if not defined. TTL is counted from the time message or its content is viewed in secret chats and from the send date in other chats
939
- //@theme_name If non-empty, name of the theme set for the chat
940
  //@action_bar Describes actions which should be possible to do through a chat action bar; may be null
941
  //@voice_chat Contains information about voice chat of the chat
942
  //@reply_markup_message_id Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat
943
  //@draft_message A draft of a message in the chat; may be null
@@ -1775,9 +1775,9 @@
1775
 
1776
  //@description A screenshot of a message in the chat has been taken
1777
  messageScreenshotTaken = MessageContent;
1778
 
1779
- //@description A theme in the chat has been changed @theme_name If non-empty, name of the new theme set for the chat. Otherwise chat theme was reset to the default one
1780
  messageChatSetTheme theme_name:string = MessageContent;
1781
 
1782
  //@description The TTL (Time To Live) setting for messages in the chat has been changed @ttl New message TTL setting
1783
  messageChatSetTtl ttl:int32 = MessageContent;
@@ -2517,9 +2517,9 @@
2517
 
2518
  //@description The chat photo was changed @old_photo Previous chat photo value; may be null @new_photo New chat photo value; may be null
2519
  chatEventPhotoChanged old_photo:chatPhoto new_photo:chatPhoto = ChatEventAction;
2520
 
2521
- //@description The chat theme was changed @old_theme_name Previous chat theme name; empty if default one @new_theme_name New chat theme name; empty if default one
2522
  chatEventThemeChanged old_theme_name:string new_theme_name:string = ChatEventAction;
2523
 
2524
  //@description The can_invite_users permission of a supergroup chat was toggled @can_invite_users New value of can_invite_users permission
2525
  chatEventInvitesToggled can_invite_users:Bool = ChatEventAction;
@@ -2687,11 +2687,12 @@
2687
  backgroundTypeWallpaper is_blurred:Bool is_moving:Bool = BackgroundType;
2688
 
2689
  //@description A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user
2690
  //@fill Description of the background fill
2691
- //@intensity Intensity of the pattern when it is shown above the filled background; -100-100. If negative, the pattern color and the filled background colors needs to be inverted
 
2692
  //@is_moving True, if the background needs to be slightly moved when device is tilted
2693
- backgroundTypePattern fill:BackgroundFill intensity:int32 is_moving:Bool = BackgroundType;
2694
 
2695
  //@description A filled background @fill Description of the background fill
2696
  backgroundTypeFill fill:BackgroundFill = BackgroundType;
2697
 
@@ -2732,12 +2733,9 @@
2732
  //@light_settings Theme settings for a light chat theme
2733
  //@dark_settings Theme settings for a dark chat theme
2734
  chatTheme name:string light_settings:themeSettings dark_settings:themeSettings = ChatTheme;
2735
 
2736
- //@description Contains a list of chat themes @chat_themes A list of chat themes
2737
- chatThemes chat_themes:vector<chatTheme> = ChatThemes;
2738
 
2739
-
2740
  //@description Contains a list of hashtags @hashtags A list of hashtags
2741
  hashtags hashtags:vector<string> = Hashtags;
2742
 
2743
 
@@ -2878,9 +2876,9 @@
2878
 
2879
  //@description A chat title was edited @title New chat title
2880
  pushMessageContentChatChangeTitle title:string = PushMessageContent;
2881
 
2882
- //@description A chat theme was edited @theme_name If non-empty, name of the new theme set for the chat. Otherwise chat theme was reset to the default one
2883
  pushMessageContentChatChangeTheme theme_name:string = PushMessageContent;
2884
 
2885
  //@description A chat member was deleted @member_name Name of the deleted member @is_current_user True, if the current user was deleted from the group
2886
  //@is_left True, if the user has left the group themselves
@@ -3678,9 +3676,9 @@
3678
 
3679
  //@description The chat action bar was changed @chat_id Chat identifier @action_bar The new value of the action bar; may be null
3680
  updateChatActionBar chat_id:int53 action_bar:ChatActionBar = Update;
3681
 
3682
- //@description The chat theme was changed @chat_id Chat identifier @theme_name The new name of the chat theme; may be empty if none
3683
  updateChatTheme chat_id:int53 theme_name:string = Update;
3684
 
3685
  //@description The default chat reply markup was changed. Can occur because new messages with reply markup were received or because an old reply markup was hidden by the user
3686
  //@chat_id Chat identifier @reply_markup_message_id Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat
@@ -3816,8 +3814,11 @@
3816
 
3817
  //@description The selected background has changed @for_dark_theme True, if background for dark theme has changed @background The new selected background; may be null
3818
  updateSelectedBackground for_dark_theme:Bool background:background = Update;
3819
 
 
 
 
3820
  //@description Some language pack strings have been updated @localization_target Localization target to which the language pack belongs @language_pack_id Identifier of the updated language pack @strings List of changed language pack strings
3821
  updateLanguagePackStrings localization_target:string language_pack_id:string strings:vector<languagePackString> = Update;
3822
 
3823
  //@description The connection state has changed. This update must be used only to show a human-readable description of the connection state @state The new connection state
@@ -4128,8 +4129,11 @@
4128
 
4129
  //@description Clears the list of recently found chats
4130
  clearRecentlyFoundChats = Ok;
4131
 
 
 
 
4132
  //@description Checks whether a username can be set for a chat @chat_id Chat identifier; should be identifier of a supergroup chat, or a channel chat, or a private chat with self, or zero if the chat is being created @username Username to be checked
4133
  checkChatUsername chat_id:int53 username:string = CheckChatUsernameResult;
4134
 
4135
  //@description Returns a list of public chats of the specified type, owned by the user @type Type of the public chats to return
@@ -4596,10 +4600,9 @@
4596
  //@description Changes the chat members permissions. Supported only for basic groups and supergroups. Requires can_restrict_members administrator right
4597
  //@chat_id Chat identifier @permissions New non-administrator members permissions in the chat
4598
  setChatPermissions chat_id:int53 permissions:chatPermissions = Ok;
4599
 
4600
- //@description Changes the chat theme. Supported only in private and secret chats @chat_id Chat identifier
4601
- //@theme_name Name of the new chat theme; may be empty to return the default theme
4602
  setChatTheme chat_id:int53 theme_name:string = Ok;
4603
 
4604
  //@description Changes the draft message in a chat @chat_id Chat identifier @message_thread_id If not 0, a message thread identifier in which the draft was changed @draft_message New draft message; may be null
4605
  setChatDraftMessage chat_id:int53 message_thread_id:int53 draft_message:draftMessage = Ok;
@@ -5262,12 +5265,8 @@
5262
  //@description Resets list of installed backgrounds to its default value
5263
  resetBackgrounds = Ok;
5264
 
5265
 
5266
- //@description Returns the list of available chat themes
5267
- getChatThemes = ChatThemes;
5268
-
5269
-
5270
  //@description Returns information about the current localization target. This is an offline request if only_local is true. Can be called before authorization @only_local If true, returns only locally available information without sending network requests
5271
  getLocalizationTargetInfo only_local:Bool = LocalizationTargetInfo;
5272
 
5273
  //@description Returns information about a language pack. Returned language pack identifier may be different from a provided one. Can be called before authorization @language_pack_id Language pack identifier
935
  //@last_read_outbox_message_id Identifier of the last read outgoing message
936
  //@unread_mention_count Number of unread messages with a mention/reply in the chat
937
  //@notification_settings Notification settings for this chat
938
  //@message_ttl_setting Current message Time To Live setting (self-destruct timer) for the chat; 0 if not defined. TTL is counted from the time message or its content is viewed in secret chats and from the send date in other chats
939
+ //@theme_name If non-empty, name of a theme set for the chat
940
  //@action_bar Describes actions which should be possible to do through a chat action bar; may be null
941
  //@voice_chat Contains information about voice chat of the chat
942
  //@reply_markup_message_id Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat
943
  //@draft_message A draft of a message in the chat; may be null
1775
 
1776
  //@description A screenshot of a message in the chat has been taken
1777
  messageScreenshotTaken = MessageContent;
1778
 
1779
+ //@description A theme in the chat has been changed @theme_name If non-empty, name of a new theme set for the chat. Otherwise chat theme was reset to the default one
1780
  messageChatSetTheme theme_name:string = MessageContent;
1781
 
1782
  //@description The TTL (Time To Live) setting for messages in the chat has been changed @ttl New message TTL setting
1783
  messageChatSetTtl ttl:int32 = MessageContent;
2517
 
2518
  //@description The chat photo was changed @old_photo Previous chat photo value; may be null @new_photo New chat photo value; may be null
2519
  chatEventPhotoChanged old_photo:chatPhoto new_photo:chatPhoto = ChatEventAction;
2520
 
2521
+ //@description The chat theme was changed. This event shouldn't be received until chat themes would be supported in supergroups @old_theme_name Previous chat theme name; empty if the previous theme was default one @new_theme_name New chat theme name; empty if the new theme is default one
2522
  chatEventThemeChanged old_theme_name:string new_theme_name:string = ChatEventAction;
2523
 
2524
  //@description The can_invite_users permission of a supergroup chat was toggled @can_invite_users New value of can_invite_users permission
2525
  chatEventInvitesToggled can_invite_users:Bool = ChatEventAction;
2687
  backgroundTypeWallpaper is_blurred:Bool is_moving:Bool = BackgroundType;
2688
 
2689
  //@description A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user
2690
  //@fill Description of the background fill
2691
+ //@intensity Intensity of the pattern when it is shown above the filled background; 0-100.
2692
+ //@is_inverted True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only
2693
  //@is_moving True, if the background needs to be slightly moved when device is tilted
2694
+ backgroundTypePattern fill:BackgroundFill intensity:int32 is_inverted:Bool is_moving:Bool = BackgroundType;
2695
 
2696
  //@description A filled background @fill Description of the background fill
2697
  backgroundTypeFill fill:BackgroundFill = BackgroundType;
2698
 
2733
  //@light_settings Theme settings for a light chat theme
2734
  //@dark_settings Theme settings for a dark chat theme
2735
  chatTheme name:string light_settings:themeSettings dark_settings:themeSettings = ChatTheme;
2736
 
 
 
2737
 
 
2738
  //@description Contains a list of hashtags @hashtags A list of hashtags
2739
  hashtags hashtags:vector<string> = Hashtags;
2740
 
2741
 
2876
 
2877
  //@description A chat title was edited @title New chat title
2878
  pushMessageContentChatChangeTitle title:string = PushMessageContent;
2879
 
2880
+ //@description A chat theme was edited @theme_name If non-empty, name of a new theme set for the chat. Otherwise chat theme was reset to the default one
2881
  pushMessageContentChatChangeTheme theme_name:string = PushMessageContent;
2882
 
2883
  //@description A chat member was deleted @member_name Name of the deleted member @is_current_user True, if the current user was deleted from the group
2884
  //@is_left True, if the user has left the group themselves
3676
 
3677
  //@description The chat action bar was changed @chat_id Chat identifier @action_bar The new value of the action bar; may be null
3678
  updateChatActionBar chat_id:int53 action_bar:ChatActionBar = Update;
3679
 
3680
+ //@description The chat theme was changed @chat_id Chat identifier @theme_name The new name of the chat theme; may be empty if theme was reset to default
3681
  updateChatTheme chat_id:int53 theme_name:string = Update;
3682
 
3683
  //@description The default chat reply markup was changed. Can occur because new messages with reply markup were received or because an old reply markup was hidden by the user
3684
  //@chat_id Chat identifier @reply_markup_message_id Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat
3814
 
3815
  //@description The selected background has changed @for_dark_theme True, if background for dark theme has changed @background The new selected background; may be null
3816
  updateSelectedBackground for_dark_theme:Bool background:background = Update;
3817
 
3818
+ //@description The list of available chat themes has changed @chat_themes The new list of chat themes
3819
+ updateChatThemes chat_themes:vector<chatTheme> = Update;
3820
+
3821
  //@description Some language pack strings have been updated @localization_target Localization target to which the language pack belongs @language_pack_id Identifier of the updated language pack @strings List of changed language pack strings
3822
  updateLanguagePackStrings localization_target:string language_pack_id:string strings:vector<languagePackString> = Update;
3823
 
3824
  //@description The connection state has changed. This update must be used only to show a human-readable description of the connection state @state The new connection state
4129
 
4130
  //@description Clears the list of recently found chats
4131
  clearRecentlyFoundChats = Ok;
4132
 
4133
+ //@description Returns recently opened chats, this is an offline request. Returns chats in the order of last opening @limit The maximum number of chats to be returned
4134
+ getRecentlyOpenedChats limit:int32 = Chats;
4135
+
4136
  //@description Checks whether a username can be set for a chat @chat_id Chat identifier; should be identifier of a supergroup chat, or a channel chat, or a private chat with self, or zero if the chat is being created @username Username to be checked
4137
  checkChatUsername chat_id:int53 username:string = CheckChatUsernameResult;
4138
 
4139
  //@description Returns a list of public chats of the specified type, owned by the user @type Type of the public chats to return
4600
  //@description Changes the chat members permissions. Supported only for basic groups and supergroups. Requires can_restrict_members administrator right
4601
  //@chat_id Chat identifier @permissions New non-administrator members permissions in the chat
4602
  setChatPermissions chat_id:int53 permissions:chatPermissions = Ok;
4603
 
4604
+ //@description Changes the chat theme. Supported only in private and secret chats @chat_id Chat identifier @theme_name Name of the new chat theme; may be empty to return the default theme
 
4605
  setChatTheme chat_id:int53 theme_name:string = Ok;
4606
 
4607
  //@description Changes the draft message in a chat @chat_id Chat identifier @message_thread_id If not 0, a message thread identifier in which the draft was changed @draft_message New draft message; may be null
4608
  setChatDraftMessage chat_id:int53 message_thread_id:int53 draft_message:draftMessage = Ok;
5265
  //@description Resets list of installed backgrounds to its default value
5266
  resetBackgrounds = Ok;
5267
 
5268
 
 
 
 
 
5269
  //@description Returns information about the current localization target. This is an offline request if only_local is true. Can be called before authorization @only_local If true, returns only locally available information without sending network requests
5270
  getLocalizationTargetInfo only_local:Bool = LocalizationTargetInfo;
5271
 
5272
  //@description Returns information about a language pack. Returned language pack identifier may be different from a provided one. Can be called before authorization @language_pack_id Language pack identifier