mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Add can_post_stories
, can_edit_stories
and can_delete_stories
parameters
to PromoteChatMember
This commit is contained in:
parent
02f023cfb6
commit
cef06d21de
2 changed files with 21 additions and 0 deletions
|
@ -2041,6 +2041,21 @@ Schema(
|
||||||
ty: Option(bool),
|
ty: Option(bool),
|
||||||
descr: Doc(md: "Pass True, if the administrator can delete messages of other users")
|
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(
|
Param(
|
||||||
name: "can_manage_video_chats",
|
name: "can_manage_video_chats",
|
||||||
ty: Option(bool),
|
ty: Option(bool),
|
||||||
|
|
|
@ -25,6 +25,12 @@ impl_payload! {
|
||||||
pub can_edit_messages: bool,
|
pub can_edit_messages: bool,
|
||||||
/// Pass True, if the administrator can delete messages of other users
|
/// Pass True, if the administrator can delete messages of other users
|
||||||
pub can_delete_messages: bool,
|
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
|
/// Pass True, if the administrator can manage video chats, supergroups only
|
||||||
pub can_manage_video_chats: bool,
|
pub can_manage_video_chats: bool,
|
||||||
/// Pass True, if the administrator can restrict, ban or unban chat members
|
/// Pass True, if the administrator can restrict, ban or unban chat members
|
||||||
|
|
Loading…
Reference in a new issue