pub struct InlineSend { /* private fields */ }
Expand description
Represents an update of user choosing the result of inline query and sending it to their chat partner.
Implementations§
Source§impl InlineSend
impl InlineSend
pub fn from_raw( query: UpdateBotInlineSend, client: &Client, chats: &Arc<ChatMap>, ) -> Self
Sourcepub fn message_id(&self) -> Option<InputBotInlineMessageId>
pub fn message_id(&self) -> Option<InputBotInlineMessageId>
Identifier of sent inline message. Available only if there is an inline keyboard attached. Will be also received in callback queries and can be used to edit the message.
Sourcepub async fn edit_message(
&self,
input_message: impl Into<InputMessage>,
) -> Result<Option<bool>, InvocationError>
pub async fn edit_message( &self, input_message: impl Into<InputMessage>, ) -> Result<Option<bool>, InvocationError>
Edits this inline message.
This method will return Ok(None) if message id is None (e.g. if an inline keyboard is not attached)
Trait Implementations§
Source§impl Clone for InlineSend
impl Clone for InlineSend
Source§fn clone(&self) -> InlineSend
fn clone(&self) -> InlineSend
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for InlineSend
impl !RefUnwindSafe for InlineSend
impl Send for InlineSend
impl Sync for InlineSend
impl Unpin for InlineSend
impl !UnwindSafe for InlineSend
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