pub struct SavePreparedInlineMessage { /* private fields */ }Expand description
Builder for the savePreparedInlineMessage method.
Stores a message that can be sent by a user from a Mini App. Returns the prepared message.
Implementations§
Source§impl SavePreparedInlineMessage
impl SavePreparedInlineMessage
Sourcepub fn allow_user_chats(self, v: bool) -> Self
pub fn allow_user_chats(self, v: bool) -> Self
Allows the message to be sent to private chats with users.
Sourcepub fn allow_bot_chats(self, v: bool) -> Self
pub fn allow_bot_chats(self, v: bool) -> Self
Allows the message to be sent to private chats with bots.
Sourcepub fn allow_group_chats(self, v: bool) -> Self
pub fn allow_group_chats(self, v: bool) -> Self
Allows the message to be sent to group and supergroup chats.
Sourcepub fn allow_channel_chats(self, v: bool) -> Self
pub fn allow_channel_chats(self, v: bool) -> Self
Allows the message to be sent to channel chats.
Trait Implementations§
Source§impl IntoFuture for SavePreparedInlineMessage
impl IntoFuture for SavePreparedInlineMessage
Source§type Output = Result<PreparedInlineMessage, Error>
type Output = Result<PreparedInlineMessage, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SavePreparedInlineMessage as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <SavePreparedInlineMessage 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 SavePreparedInlineMessage
impl !UnwindSafe for SavePreparedInlineMessage
impl Freeze for SavePreparedInlineMessage
impl Send for SavePreparedInlineMessage
impl Sync for SavePreparedInlineMessage
impl Unpin for SavePreparedInlineMessage
impl UnsafeUnpin for SavePreparedInlineMessage
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