Add can_post_stories, can_edit_stories and can_delete_stories parameters

to PromoteChatMember
This commit is contained in:
Andrey Brusnik 2024-07-15 18:25:47 +04:00
parent 02f023cfb6
commit cef06d21de
No known key found for this signature in database
GPG key ID: D33232F28CFF442C
2 changed files with 21 additions and 0 deletions

View file

@ -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),

View file

@ -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