Struct tbot::methods::AnswerInlineQuery
source · pub struct AnswerInlineQuery<'a> { /* private fields */ }
Expand description
Answers an inline query.
Reflects the answerInlineQuery
method.
Implementations§
source§impl<'a> AnswerInlineQuery<'a>
impl<'a> AnswerInlineQuery<'a>
sourcepub const fn cache_time(self, time: u64) -> Self
pub const fn cache_time(self, time: u64) -> Self
Configures the amount of time (in seconds) for which the answer may be
cached. Reflects the cache_time
parameter.
sourcepub const fn is_personal(self, is_personal: bool) -> Self
pub const fn is_personal(self, is_personal: bool) -> Self
Configures whether the result may be cached only for the user who sent
the query. Reflects the is_personal
parameter.
sourcepub fn next_offset(self, offset: impl Into<String>) -> Self
pub fn next_offset(self, offset: impl Into<String>) -> Self
Configures the offset to be sent in the next query.
Reflects the next_offset
parameter.
source§impl AnswerInlineQuery<'_>
impl AnswerInlineQuery<'_>
sourcepub async fn call(self) -> Result<(), MethodCall>
pub async fn call(self) -> Result<(), MethodCall>
Calls the method.
Trait Implementations§
source§impl<'a> Clone for AnswerInlineQuery<'a>
impl<'a> Clone for AnswerInlineQuery<'a>
source§fn clone(&self) -> AnswerInlineQuery<'a>
fn clone(&self) -> AnswerInlineQuery<'a>
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 more