pub struct SetChatStickerSetRequest<'a> { /* private fields */ }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.
Implementations§
Source§impl<'a> SetChatStickerSetRequest<'a>
impl<'a> SetChatStickerSetRequest<'a>
pub fn new( api: &'a API, chat_id: impl Into<ChatId>, sticker_set_name: impl Into<String>, ) -> Self
Sourcepub fn chat_id(self, chat_id: impl Into<ChatId>) -> Self
pub fn chat_id(self, chat_id: impl Into<ChatId>) -> Self
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
Sourcepub fn sticker_set_name(self, sticker_set_name: impl Into<String>) -> Self
pub fn sticker_set_name(self, sticker_set_name: impl Into<String>) -> Self
Name of the sticker set to be set as the group sticker set
Trait Implementations§
Source§impl<'a> Clone for SetChatStickerSetRequest<'a>
impl<'a> Clone for SetChatStickerSetRequest<'a>
Source§fn clone(&self) -> SetChatStickerSetRequest<'a>
fn clone(&self) -> SetChatStickerSetRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, 'b> IntoFuture for &'b SetChatStickerSetRequest<'a>
impl<'a, 'b> IntoFuture for &'b SetChatStickerSetRequest<'a>
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<<SetChatStickerSetRequest<'a> as RequestT>::ReturnType, ConogramError>> + Send + 'b>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<<SetChatStickerSetRequest<'a> as RequestT>::ReturnType, ConogramError>> + Send + 'b>>
Which kind of future are we turning this into?
Source§type Output = <<&'b SetChatStickerSetRequest<'a> as IntoFuture>::IntoFuture as Future>::Output
type Output = <<&'b SetChatStickerSetRequest<'a> as IntoFuture>::IntoFuture as Future>::Output
The output that the future will produce on completion.
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Source§impl<'a> IntoFuture for SetChatStickerSetRequest<'a>
impl<'a> IntoFuture for SetChatStickerSetRequest<'a>
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<<SetChatStickerSetRequest<'a> as RequestT>::ReturnType, ConogramError>> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<<SetChatStickerSetRequest<'a> as RequestT>::ReturnType, ConogramError>> + Send + 'a>>
Which kind of future are we turning this into?
Source§type Output = <<SetChatStickerSetRequest<'a> as IntoFuture>::IntoFuture as Future>::Output
type Output = <<SetChatStickerSetRequest<'a> as IntoFuture>::IntoFuture as Future>::Output
The output that the future will produce on completion.
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> Freeze for SetChatStickerSetRequest<'a>
impl<'a> !RefUnwindSafe for SetChatStickerSetRequest<'a>
impl<'a> Send for SetChatStickerSetRequest<'a>
impl<'a> Sync for SetChatStickerSetRequest<'a>
impl<'a> Unpin for SetChatStickerSetRequest<'a>
impl<'a> UnsafeUnpin for SetChatStickerSetRequest<'a>
impl<'a> !UnwindSafe for SetChatStickerSetRequest<'a>
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