diff --git a/crates/teloxide-core/schema.ron b/crates/teloxide-core/schema.ron index cc649e5d..7cd1647b 100644 --- a/crates/teloxide-core/schema.ron +++ b/crates/teloxide-core/schema.ron @@ -2041,6 +2041,21 @@ Schema( ty: Option(bool), descr: Doc(md: "Pass True, if the administrator can delete messages of other users") ), + Param( + name: "can_post_stories", + ty: Option(bool), + descr: Doc(md: "Pass True, if the administrator can post stories in the channel, channels only") + ), + 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") + ), + 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") + ), Param( name: "can_manage_video_chats", ty: Option(bool), diff --git a/crates/teloxide-core/src/payloads/promote_chat_member.rs b/crates/teloxide-core/src/payloads/promote_chat_member.rs index 9b8bac40..851abdd4 100644 --- a/crates/teloxide-core/src/payloads/promote_chat_member.rs +++ b/crates/teloxide-core/src/payloads/promote_chat_member.rs @@ -25,6 +25,12 @@ 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 + pub can_post_stories: bool, + /// Pass True, if the administrator can edit stories posted by other users, channels only + pub can_edit_stories: bool, + /// Pass True, if the administrator can delete stories posted by other users, channels only + pub can_delete_stories: bool, /// Pass True, if the administrator can manage video chats, supergroups only pub can_manage_video_chats: bool, /// Pass True, if the administrator can restrict, ban or unban chat members