diff --git a/_schema/tdapi.tl b/_schema/tdapi.tl index c0219b6021..bb248988df 100644 --- a/_schema/tdapi.tl +++ b/_schema/tdapi.tl @@ -1,7 +1,7 @@ // Code generated by ./cmd/dltl, DO NOT EDIT. // // Source: https://raw.githubusercontent.com/tdlib/td/master/td/generate/scheme/td_api.tl -// SHA256: aebc55c771a4ce5ea24cf9f25d4318d1642a491143616ef63fee79affd1b7549 +// SHA256: c23d12535019a8cca837a75c58027e1755e6ebed2d537c28412e99990a19ba69 double#2210c154 ? = Double; @@ -659,13 +659,13 @@ inputChatPhotoSticker#4e6e735d sticker:chatPhotoSticker = InputChatPhoto; chatPermissions#af3b61cb can_send_basic_messages:Bool can_send_audios:Bool can_send_documents:Bool can_send_photos:Bool can_send_videos:Bool can_send_video_notes:Bool can_send_voice_notes:Bool can_send_polls:Bool can_send_other_messages:Bool can_add_web_page_previews:Bool can_change_info:Bool can_invite_users:Bool can_pin_messages:Bool can_manage_topics:Bool = ChatPermissions; //@description Describes rights of the administrator -//@can_manage_chat True, if the administrator can get chat event log, get chat statistics, get chat boosts in channels, get message statistics in channels, get channel members, +//@can_manage_chat True, if the administrator can get chat event log, get chat boosts in channels, get channel members, report supergroup spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other privilege; applicable to supergroups and channels only //@can_change_info True, if the administrator can change the chat title, photo, and other settings -//@can_post_messages True, if the administrator can create channel posts; applicable to channels only +//@can_post_messages True, if the administrator can create channel posts or view channel statistics; applicable to channels only //@can_edit_messages True, if the administrator can edit messages of other users and pin messages; applicable to channels only //@can_delete_messages True, if the administrator can delete messages of other users //@can_invite_users True, if the administrator can invite new users to the chat -//@can_restrict_members True, if the administrator can restrict, ban, or unban chat members; always true for channels +//@can_restrict_members True, if the administrator can restrict, ban, or unban chat members or view supergroup statistics; always true for channels //@can_pin_messages True, if the administrator can pin messages; applicable to basic groups and supergroups only //@can_manage_topics True, if the administrator can manage topics; applicable to forum supergroups only //@can_promote_members True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them @@ -7284,13 +7284,6 @@ getChatMessagePosition#dea71718 chat_id:int53 message_id:int53 filter:SearchMess //@chat_id Chat identifier getChatScheduledMessages#df3d2ffb chat_id:int53 = Messages; -//@description Returns forwarded copies of a channel message to different public channels. For optimal performance, the number of returned messages is chosen by TDLib -//@chat_id Chat identifier of the message -//@message_id Message identifier -//@offset Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results -//@limit The maximum number of messages to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit -getMessagePublicForwards#6006a949 chat_id:int53 message_id:int53 offset:string limit:int32 = FoundMessages; - //@description Returns sponsored messages to be shown in a chat; for channel chats only //@chat_id Identifier of the chat getChatSponsoredMessages#50a84098 chat_id:int53 = SponsoredMessages; @@ -9563,6 +9556,13 @@ getChatStatistics#137e8198 chat_id:int53 is_dark:Bool = ChatStatistics; //@is_dark Pass true if a dark theme is used by the application getMessageStatistics#4bb5a1d8 chat_id:int53 message_id:int53 is_dark:Bool = MessageStatistics; +//@description Returns forwarded copies of a channel message to different public channels. Can be used only if message.can_get_statistics == true. For optimal performance, the number of returned messages is chosen by TDLib +//@chat_id Chat identifier of the message +//@message_id Message identifier +//@offset Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results +//@limit The maximum number of messages to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit +getMessagePublicForwards#6006a949 chat_id:int53 message_id:int53 offset:string limit:int32 = FoundMessages; + //@description Loads an asynchronous or a zoomed in statistical graph //@chat_id Chat identifier //@token The token for graph loading diff --git a/tdapi/tl_chat_administrator_rights_gen.go b/tdapi/tl_chat_administrator_rights_gen.go index 0de491ef0f..4f6b1dce11 100644 --- a/tdapi/tl_chat_administrator_rights_gen.go +++ b/tdapi/tl_chat_administrator_rights_gen.go @@ -33,12 +33,15 @@ var ( // ChatAdministratorRights represents TL type `chatAdministratorRights#5f4f9044`. type ChatAdministratorRights struct { - // True, if the administrator can get chat event log, get chat statistics, get chat - // boosts in channels, get message statistics in channels, get channel members, + // True, if the administrator can get chat event log, get chat boosts in channels, get + // channel members, report supergroup spam messages, see anonymous administrators in + // supergroups and ignore slow mode. Implied by any other privilege; applicable to + // supergroups and channels only CanManageChat bool // True, if the administrator can change the chat title, photo, and other settings CanChangeInfo bool - // True, if the administrator can create channel posts; applicable to channels only + // True, if the administrator can create channel posts or view channel statistics; + // applicable to channels only CanPostMessages bool // True, if the administrator can edit messages of other users and pin messages; // applicable to channels only @@ -47,8 +50,8 @@ type ChatAdministratorRights struct { CanDeleteMessages bool // True, if the administrator can invite new users to the chat CanInviteUsers bool - // True, if the administrator can restrict, ban, or unban chat members; always true for - // channels + // True, if the administrator can restrict, ban, or unban chat members or view supergroup + // statistics; always true for channels CanRestrictMembers bool // True, if the administrator can pin messages; applicable to basic groups and // supergroups only diff --git a/tdapi/tl_registry_gen.go b/tdapi/tl_registry_gen.go index cefe221de4..6017f69c70 100644 --- a/tdapi/tl_registry_gen.go +++ b/tdapi/tl_registry_gen.go @@ -1425,7 +1425,6 @@ func TypesMap() map[uint32]string { GetChatMessageCountRequestTypeID: "getChatMessageCount#c3eb1ac", GetChatMessagePositionRequestTypeID: "getChatMessagePosition#dea71718", GetChatScheduledMessagesRequestTypeID: "getChatScheduledMessages#df3d2ffb", - GetMessagePublicForwardsRequestTypeID: "getMessagePublicForwards#6006a949", GetChatSponsoredMessagesRequestTypeID: "getChatSponsoredMessages#50a84098", ClickChatSponsoredMessageRequestTypeID: "clickChatSponsoredMessage#d9c09feb", RemoveNotificationRequestTypeID: "removeNotification#336ab34e", @@ -1871,6 +1870,7 @@ func TypesMap() map[uint32]string { ReportMessageReactionsRequestTypeID: "reportMessageReactions#36c88827", GetChatStatisticsRequestTypeID: "getChatStatistics#137e8198", GetMessageStatisticsRequestTypeID: "getMessageStatistics#4bb5a1d8", + GetMessagePublicForwardsRequestTypeID: "getMessagePublicForwards#6006a949", GetStatisticalGraphRequestTypeID: "getStatisticalGraph#419f8d9b", GetStorageStatisticsRequestTypeID: "getStorageStatistics#cd254b37", GetStorageStatisticsFastRequestTypeID: "getStorageStatisticsFast#3a86702", @@ -3372,7 +3372,6 @@ func NamesMap() map[string]uint32 { "getChatMessageCount": GetChatMessageCountRequestTypeID, "getChatMessagePosition": GetChatMessagePositionRequestTypeID, "getChatScheduledMessages": GetChatScheduledMessagesRequestTypeID, - "getMessagePublicForwards": GetMessagePublicForwardsRequestTypeID, "getChatSponsoredMessages": GetChatSponsoredMessagesRequestTypeID, "clickChatSponsoredMessage": ClickChatSponsoredMessageRequestTypeID, "removeNotification": RemoveNotificationRequestTypeID, @@ -3818,6 +3817,7 @@ func NamesMap() map[string]uint32 { "reportMessageReactions": ReportMessageReactionsRequestTypeID, "getChatStatistics": GetChatStatisticsRequestTypeID, "getMessageStatistics": GetMessageStatisticsRequestTypeID, + "getMessagePublicForwards": GetMessagePublicForwardsRequestTypeID, "getStatisticalGraph": GetStatisticalGraphRequestTypeID, "getStorageStatistics": GetStorageStatisticsRequestTypeID, "getStorageStatisticsFast": GetStorageStatisticsFastRequestTypeID, @@ -5319,7 +5319,6 @@ func TypesConstructorMap() map[uint32]func() bin.Object { GetChatMessageCountRequestTypeID: func() bin.Object { return &GetChatMessageCountRequest{} }, GetChatMessagePositionRequestTypeID: func() bin.Object { return &GetChatMessagePositionRequest{} }, GetChatScheduledMessagesRequestTypeID: func() bin.Object { return &GetChatScheduledMessagesRequest{} }, - GetMessagePublicForwardsRequestTypeID: func() bin.Object { return &GetMessagePublicForwardsRequest{} }, GetChatSponsoredMessagesRequestTypeID: func() bin.Object { return &GetChatSponsoredMessagesRequest{} }, ClickChatSponsoredMessageRequestTypeID: func() bin.Object { return &ClickChatSponsoredMessageRequest{} }, RemoveNotificationRequestTypeID: func() bin.Object { return &RemoveNotificationRequest{} }, @@ -5765,6 +5764,7 @@ func TypesConstructorMap() map[uint32]func() bin.Object { ReportMessageReactionsRequestTypeID: func() bin.Object { return &ReportMessageReactionsRequest{} }, GetChatStatisticsRequestTypeID: func() bin.Object { return &GetChatStatisticsRequest{} }, GetMessageStatisticsRequestTypeID: func() bin.Object { return &GetMessageStatisticsRequest{} }, + GetMessagePublicForwardsRequestTypeID: func() bin.Object { return &GetMessagePublicForwardsRequest{} }, GetStatisticalGraphRequestTypeID: func() bin.Object { return &GetStatisticalGraphRequest{} }, GetStorageStatisticsRequestTypeID: func() bin.Object { return &GetStorageStatisticsRequest{} }, GetStorageStatisticsFastRequestTypeID: func() bin.Object { return &GetStorageStatisticsFastRequest{} },