Type Alias grammers_client::client::bots::InlineResultIter
source · pub type InlineResultIter = IterBuffer<GetInlineBotResults, InlineResult>;
Aliased Type§
struct InlineResultIter { /* private fields */ }
Implementations§
source§impl InlineResultIter
impl InlineResultIter
sourcepub fn chat<C: Into<PackedChat>>(self, chat: C) -> Self
pub fn chat<C: Into<PackedChat>>(self, chat: C) -> Self
Indicate the bot the chat where this inline query will be sent to.
Some bots use this information to return different results depending on the type of the chat, and some even “need” it to give useful results.
sourcepub async fn next(&mut self) -> Result<Option<InlineResult>, InvocationError>
pub async fn next(&mut self) -> Result<Option<InlineResult>, InvocationError>
Return the next InlineResult
from the internal buffer, filling the buffer previously if
it’s empty.
Returns None
if the limit
is reached or there are no results left.