pub struct InlineQuery { /* private fields */ }
Expand description
Represents an inline query update, which occurs when you sign in as a bot and a user sends an
inline query such as @bot query
.
Implementations§
Source§impl InlineQuery
impl InlineQuery
pub fn from_raw( client: &Client, query: UpdateBotInlineQuery, chats: &Arc<ChatMap>, ) -> Self
Sourcepub fn answer(&self, results: impl IntoIterator<Item = InlineResult>) -> Answer
pub fn answer(&self, results: impl IntoIterator<Item = InlineResult>) -> Answer
Answer the inline query.
Sourcepub fn peer_type(&self) -> Option<InlineQueryPeerType>
pub fn peer_type(&self) -> Option<InlineQueryPeerType>
Type of the chat from which the inline query was sent.
Trait Implementations§
Source§impl Clone for InlineQuery
impl Clone for InlineQuery
Source§fn clone(&self) -> InlineQuery
fn clone(&self) -> InlineQuery
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 InlineQuery
impl !RefUnwindSafe for InlineQuery
impl Send for InlineQuery
impl Sync for InlineQuery
impl Unpin for InlineQuery
impl !UnwindSafe for InlineQuery
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