pub struct SetUserEmojiStatus { /* private fields */ }Expand description
Builder for the setUserEmojiStatus method.
Changes the emoji status for a user who previously allowed the bot to manage
their emoji status via the Mini App method requestEmojiStatusAccess.
Omit emoji_status_custom_emoji_id or pass an empty string to remove the status.
Implementations§
Source§impl SetUserEmojiStatus
impl SetUserEmojiStatus
Sourcepub fn emoji_status_custom_emoji_id(self, id: impl Into<String>) -> Self
pub fn emoji_status_custom_emoji_id(self, id: impl Into<String>) -> Self
Sets the custom emoji identifier for the emoji status. Pass an empty string to remove the current status.
Sourcepub fn emoji_status_expiration_date(self, ts: i64) -> Self
pub fn emoji_status_expiration_date(self, ts: i64) -> Self
Sets the expiration date of the emoji status as a Unix timestamp.
Trait Implementations§
Source§impl IntoFuture for SetUserEmojiStatus
impl IntoFuture for SetUserEmojiStatus
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SetUserEmojiStatus as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <SetUserEmojiStatus as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
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 !RefUnwindSafe for SetUserEmojiStatus
impl !UnwindSafe for SetUserEmojiStatus
impl Freeze for SetUserEmojiStatus
impl Send for SetUserEmojiStatus
impl Sync for SetUserEmojiStatus
impl Unpin for SetUserEmojiStatus
impl UnsafeUnpin for SetUserEmojiStatus
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