[][src]Struct tgbot::types::InlineQueryResultMpeg4Gif

pub struct InlineQueryResultMpeg4Gif { /* fields omitted */ }

Link to a video animation (H.264/MPEG-4 AVC video without sound)

By default, this animated MPEG-4 file will be sent by the user with optional caption Alternatively, you can use input_message_content to send a message with the specified content instead of the animation

Methods

impl InlineQueryResultMpeg4Gif[src]

pub fn new<I, U, T>(id: I, mpeg4_url: U, thumb_url: T) -> Self where
    I: Into<String>,
    U: Into<String>,
    T: Into<String>, 
[src]

Creates a new InlineQueryResultMpeg4Gif with empty optional parameters

Arguments

  • id - Unique identifier for this result, 1-64 bytes
  • mpeg4_url - A valid URL for the MP4 file. File size must not exceed 1MB
  • thumb_url - URL of the static thumbnail (jpeg or gif) for the result

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

Video width

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

Video height

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

Video duration

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

Title for the result

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

Caption of the MPEG-4 file to be sent, 0-1024 characters

pub fn parse_mode(self, parse_mode: ParseMode) -> Self[src]

Parse mode

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

Inline keyboard attached to the message

pub fn input_message_content<C: Into<InputMessageContent>>(
    self,
    input_message_content: C
) -> Self
[src]

Content of the message to be sent instead of the video animation

Trait Implementations

impl Clone for InlineQueryResultMpeg4Gif[src]

impl Debug for InlineQueryResultMpeg4Gif[src]

impl From<InlineQueryResultMpeg4Gif> for InlineQueryResult[src]

impl Serialize for InlineQueryResultMpeg4Gif[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.