[][src]Struct tgbot::types::InlineQueryResultArticle

pub struct InlineQueryResultArticle { /* fields omitted */ }

Link to an article or web page

Methods

impl InlineQueryResultArticle[src]

pub fn new<I, T, C>(id: I, title: T, input_message_content: C) -> Self where
    I: Into<String>,
    T: Into<String>,
    C: Into<InputMessageContent>, 
[src]

Creates a new InlineQueryResultArticle with empty optional parameters

Arguments

  • id - Unique identifier for this result, 1-64 Bytes
  • title - Title of the result
  • input_message_content - Content of the message to be sent

pub fn reply_markup<I: Into<InlineKeyboardMarkup>>(
    self,
    reply_markup: I
) -> Self
[src]

Inline keyboard attached to the message

pub fn url<S: Into<String>>(self, url: S) -> Self[src]

URL of the result

pub fn hide_url(self, hide_url: bool) -> Self[src]

Pass True, if you don't want the URL to be shown in the message

pub fn description<S: Into<String>>(self, description: S) -> Self[src]

Short description of the result

pub fn thumb_url<S: Into<String>>(self, thumb_url: S) -> Self[src]

Url of the thumbnail for the result

pub fn thumb_width(self, thumb_width: Integer) -> Self[src]

Thumbnail width

pub fn thumb_height(self, thumb_height: Integer) -> Self[src]

Thumbnail height

Trait Implementations

impl Clone for InlineQueryResultArticle[src]

impl Debug for InlineQueryResultArticle[src]

impl From<InlineQueryResultArticle> for InlineQueryResult[src]

impl Serialize for InlineQueryResultArticle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.