Struct tbot::methods::AnswerCallbackQuery
source · pub struct AnswerCallbackQuery<'a> { /* private fields */ }
Expand description
Answers a callback query.
Reflects the answerCallbackQuery
method.
Implementations§
source§impl<'a> AnswerCallbackQuery<'a>
impl<'a> AnswerCallbackQuery<'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.
source§impl AnswerCallbackQuery<'_>
impl AnswerCallbackQuery<'_>
sourcepub async fn call(self) -> Result<(), MethodCall>
pub async fn call(self) -> Result<(), MethodCall>
Calls the method.
Trait Implementations§
source§impl<'a> Clone for AnswerCallbackQuery<'a>
impl<'a> Clone for AnswerCallbackQuery<'a>
source§fn clone(&self) -> AnswerCallbackQuery<'a>
fn clone(&self) -> AnswerCallbackQuery<'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