pub enum InlineQueryResultsButtonKind {
WebApp(WebAppInfo),
StartParameter(String),
}Variants§
WebApp(WebAppInfo)
Description of the Web App that will be launched when the user presses the button. The Web App will be able to switch back to the inline mode using the method switchInlineQuery inside the Web App.
StartParameter(String)
Deep-linking parameter for the /start message sent to the bot when a
user presses the button. 1-64 characters, only A-Z, a-z, 0-9, _
and - are allowed.
Example: An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to adapt search results accordingly. To do this, it displays a ‘Connect your YouTube account’ button above the results, or even before showing any. The user presses the button, switches to a private chat with the bot and, in doing so, passes a start parameter that instructs the bot to return an OAuth link. Once done, the bot can offer a switch_inline button so that the user can easily return to the chat where they wanted to use the bot’s inline capabilities.
Trait Implementations§
Source§impl Clone for InlineQueryResultsButtonKind
impl Clone for InlineQueryResultsButtonKind
Source§fn clone(&self) -> InlineQueryResultsButtonKind
fn clone(&self) -> InlineQueryResultsButtonKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InlineQueryResultsButtonKind
impl Debug for InlineQueryResultsButtonKind
Source§impl<'de> Deserialize<'de> for InlineQueryResultsButtonKind
impl<'de> Deserialize<'de> for InlineQueryResultsButtonKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InlineQueryResultsButtonKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InlineQueryResultsButtonKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Hash for InlineQueryResultsButtonKind
impl Hash for InlineQueryResultsButtonKind
Source§impl PartialEq for InlineQueryResultsButtonKind
impl PartialEq for InlineQueryResultsButtonKind
Source§fn eq(&self, other: &InlineQueryResultsButtonKind) -> bool
fn eq(&self, other: &InlineQueryResultsButtonKind) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for InlineQueryResultsButtonKind
impl Serialize for InlineQueryResultsButtonKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for InlineQueryResultsButtonKind
impl StructuralPartialEq for InlineQueryResultsButtonKind
Auto Trait Implementations§
impl Freeze for InlineQueryResultsButtonKind
impl RefUnwindSafe for InlineQueryResultsButtonKind
impl Send for InlineQueryResultsButtonKind
impl Sync for InlineQueryResultsButtonKind
impl Unpin for InlineQueryResultsButtonKind
impl UnwindSafe for InlineQueryResultsButtonKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Erasable for T
impl<T> Erasable for T
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