Struct teloxide_core::payloads::AnswerInlineQuery
source · pub struct AnswerInlineQuery {
pub inline_query_id: String,
pub results: Vec<InlineQueryResult>,
pub cache_time: Option<u32>,
pub is_personal: Option<bool>,
pub next_offset: Option<String>,
pub button: Option<InlineQueryResultsButton>,
}
Expand description
Use this method to send answers to an inline query. On success, True is returned. No more than 50 results per query are allowed.
Fields§
§inline_query_id: String
Unique identifier for the answered query
results: Vec<InlineQueryResult>
A JSON-serialized array of results for the inline query
cache_time: Option<u32>
The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.
is_personal: Option<bool>
Pass True, if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query
next_offset: Option<String>
Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don’t support pagination. Offset length can’t exceed 64 bytes.
A JSON-serialized object describing a button to be shown above inline query results
Implementations§
source§impl AnswerInlineQuery
impl AnswerInlineQuery
pub fn new( inline_query_id: impl Into<String>, results: impl IntoIterator<Item = InlineQueryResult>, ) -> Self
Trait Implementations§
source§impl Clone for AnswerInlineQuery
impl Clone for AnswerInlineQuery
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnswerInlineQuery
impl Debug for AnswerInlineQuery
source§impl PartialEq for AnswerInlineQuery
impl PartialEq for AnswerInlineQuery
source§impl Payload for AnswerInlineQuery
impl Payload for AnswerInlineQuery
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
GetUpdates
with
big timeout
), the minimum timeout that should be used.source§impl Serialize for AnswerInlineQuery
impl Serialize for AnswerInlineQuery
impl StructuralPartialEq for AnswerInlineQuery
Auto Trait Implementations§
impl Freeze for AnswerInlineQuery
impl RefUnwindSafe for AnswerInlineQuery
impl Send for AnswerInlineQuery
impl Sync for AnswerInlineQuery
impl Unpin for AnswerInlineQuery
impl UnwindSafe for AnswerInlineQuery
Blanket Implementations§
source§impl<P> AnswerInlineQuerySetters for Pwhere
P: HasPayload<Payload = AnswerInlineQuery>,
impl<P> AnswerInlineQuerySetters for Pwhere
P: HasPayload<Payload = AnswerInlineQuery>,
source§fn inline_query_id<T>(self, value: T) -> Self
fn inline_query_id<T>(self, value: T) -> Self
inline_query_id
field.source§fn results<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = InlineQueryResult>,
fn results<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = InlineQueryResult>,
results
field.source§fn cache_time(self, value: u32) -> Self
fn cache_time(self, value: u32) -> Self
cache_time
field.source§fn is_personal(self, value: bool) -> Self
fn is_personal(self, value: bool) -> Self
is_personal
field.source§fn next_offset<T>(self, value: T) -> Self
fn next_offset<T>(self, value: T) -> Self
next_offset
field.button
field.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Erasable for T
impl<T> Erasable for T
source§impl<P> HasPayload for Pwhere
P: Payload,
impl<P> HasPayload for Pwhere
P: Payload,
source§fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
source§fn payload_ref(&self) -> &<P as HasPayload>::Payload
fn payload_ref(&self) -> &<P as HasPayload>::Payload
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more