pub struct SetChatStickerSet {
pub chat_id: ChatId,
pub sticker_set_name: String,
}Expand description
Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success.
Fields§
§chat_id: ChatIdUnique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)
sticker_set_name: StringName of the sticker set to be set as the group sticker set
Implementations§
Trait Implementations§
Source§impl Clone for SetChatStickerSet
impl Clone for SetChatStickerSet
Source§fn clone(&self) -> SetChatStickerSet
fn clone(&self) -> SetChatStickerSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Serialize for SetChatStickerSet
impl Serialize for SetChatStickerSet
Source§impl TelegramMethod for SetChatStickerSet
impl TelegramMethod for SetChatStickerSet
impl JsonMethod for SetChatStickerSet
Auto Trait Implementations§
impl Freeze for SetChatStickerSet
impl RefUnwindSafe for SetChatStickerSet
impl Send for SetChatStickerSet
impl Sync for SetChatStickerSet
impl Unpin for SetChatStickerSet
impl UnwindSafe for SetChatStickerSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more