diff --git a/crates/teloxide-core/schema.ron b/crates/teloxide-core/schema.ron index c7a9a3b4..ea0f7234 100644 --- a/crates/teloxide-core/schema.ron +++ b/crates/teloxide-core/schema.ron @@ -2098,17 +2098,17 @@ Schema( Param( name: "can_post_stories", ty: Option(bool), - descr: Doc(md: "Pass True, if the administrator can post stories in the channel, channels only") + descr: Doc(md: "Pass True, if the administrator can post stories to the chat") ), Param( name: "can_edit_stories", ty: Option(bool), - descr: Doc(md: "Pass True, if the administrator can edit stories posted by other users, channels only") + descr: Doc(md: "Pass True, if the administrator can edit stories posted by other users") ), Param( name: "can_delete_stories", ty: Option(bool), - descr: Doc(md: "Pass True, if the administrator can delete stories posted by other users, channels only") + descr: Doc(md: "Pass True, if the administrator can delete stories posted by other users") ), Param( name: "can_manage_video_chats", diff --git a/crates/teloxide-core/src/payloads/promote_chat_member.rs b/crates/teloxide-core/src/payloads/promote_chat_member.rs index 851abdd4..7512ee97 100644 --- a/crates/teloxide-core/src/payloads/promote_chat_member.rs +++ b/crates/teloxide-core/src/payloads/promote_chat_member.rs @@ -25,11 +25,11 @@ impl_payload! { pub can_edit_messages: bool, /// Pass True, if the administrator can delete messages of other users pub can_delete_messages: bool, - /// Pass True, if the administrator can post stories in the channel, channels only + /// Pass True, if the administrator can post stories to the chat pub can_post_stories: bool, - /// Pass True, if the administrator can edit stories posted by other users, channels only + /// Pass True, if the administrator can edit stories posted by other users pub can_edit_stories: bool, - /// Pass True, if the administrator can delete stories posted by other users, channels only + /// Pass True, if the administrator can delete stories posted by other users pub can_delete_stories: bool, /// Pass True, if the administrator can manage video chats, supergroups only pub can_manage_video_chats: bool, diff --git a/crates/teloxide-core/src/types/chat_administrator_rights.rs b/crates/teloxide-core/src/types/chat_administrator_rights.rs index c3e9c62c..3a80c8c6 100644 --- a/crates/teloxide-core/src/types/chat_administrator_rights.rs +++ b/crates/teloxide-core/src/types/chat_administrator_rights.rs @@ -47,16 +47,13 @@ pub struct ChatAdministratorRights { /// supergroups only pub can_pin_messages: Option, - /// `true`, if the administrator can post stories in the channel; - /// channels only + /// `true`, if the administrator can post stories to the chat pub can_post_stories: Option, - /// `true`, if the administrator can edit stories posted by other users; - /// channels only + /// `true`, if the administrator can edit stories posted by other users pub can_edit_stories: Option, - /// `true`, if the administrator can delete stories posted by other users; - /// channels only + /// `true`, if the administrator can delete stories posted by other users pub can_delete_stories: Option, /// `true`, if the user is allowed to create, rename, close, and reopen diff --git a/crates/teloxide-core/src/types/chat_member.rs b/crates/teloxide-core/src/types/chat_member.rs index 5aec15ee..458474f7 100644 --- a/crates/teloxide-core/src/types/chat_member.rs +++ b/crates/teloxide-core/src/types/chat_member.rs @@ -80,18 +80,15 @@ pub struct Administrator { /// `true` if the administrator can delete messages of other users. pub can_delete_messages: bool, - /// `true` if the administrator can post stories in the channel, channels - /// only. + /// `true` if the administrator can post stories to the chat. #[serde(default)] pub can_post_stories: bool, - /// `true` if the administrator can edit stories posted by other users, - /// channels only. + /// `true` if the administrator can edit stories posted by other users. #[serde(default)] pub can_edit_stories: bool, - /// `true` if the administrator can delete stories posted by other users, - /// channels only. + /// `true` if the administrator can delete stories posted by other users. #[serde(default)] pub can_delete_stories: bool, @@ -447,8 +444,7 @@ impl ChatMemberKind { } } - /// Returns `true` if the user can post stories in the channel, channels - /// only. + /// Returns `true` if the administrator can post stories to the chat. /// /// I.e. returns `true` if the user /// - is the owner of the chat (even if the chat is not a channel) @@ -467,8 +463,8 @@ impl ChatMemberKind { } } - /// Returns `true` if the user can edit stories posted by other users, - /// channels only. + /// Returns `true` if the administrator can edit stories posted by other + /// users. /// /// I.e. returns `true` if the user /// - is the owner of the chat (even if the chat is not a channel) @@ -487,8 +483,8 @@ impl ChatMemberKind { } } - /// Returns `true` if the user can delete stories posted by other users, - /// channels only. + /// Returns `true` if the administrator can delete stories posted by other + /// users. /// /// I.e. returns `true` if the user /// - is the owner of the chat