Struct telegram_bot_api::methods::SetChatStickerSet
source · [−]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: ChatId
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
sticker_set_name: String
Name of the sticker set to be set as the group sticker set
Implementations
Trait Implementations
sourceimpl Clone for SetChatStickerSet
impl Clone for SetChatStickerSet
sourcefn clone(&self) -> SetChatStickerSet
fn clone(&self) -> SetChatStickerSet
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SetChatStickerSet
impl Debug for SetChatStickerSet
sourceimpl<'de> Deserialize<'de> for SetChatStickerSet
impl<'de> Deserialize<'de> for SetChatStickerSet
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Methods for SetChatStickerSet
impl Methods for SetChatStickerSet
sourceimpl Serialize for SetChatStickerSet
impl Serialize for SetChatStickerSet
Auto Trait Implementations
impl RefUnwindSafe for SetChatStickerSet
impl Send for SetChatStickerSet
impl Sync for SetChatStickerSet
impl Unpin for SetChatStickerSet
impl UnwindSafe for SetChatStickerSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more