Struct teloxide_core::payloads::SetChatStickerSet
source · pub struct SetChatStickerSet {
pub chat_id: Recipient,
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 admin 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: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
sticker_set_name: String
Name 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§impl Debug for SetChatStickerSet
impl Debug for SetChatStickerSet
source§impl Hash for SetChatStickerSet
impl Hash for SetChatStickerSet
source§impl PartialEq<SetChatStickerSet> for SetChatStickerSet
impl PartialEq<SetChatStickerSet> for SetChatStickerSet
source§fn eq(&self, other: &SetChatStickerSet) -> bool
fn eq(&self, other: &SetChatStickerSet) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for SetChatStickerSet
impl Payload for SetChatStickerSet
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates
with
big timeout
), the minimum timeout that should be used.source§impl Serialize for SetChatStickerSet
impl Serialize for SetChatStickerSet
impl Eq for SetChatStickerSet
impl StructuralEq for SetChatStickerSet
impl StructuralPartialEq 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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.