[−][src]Struct tgbot::types::InlineQueryResultGif
Link to an animated GIF file
By default, this animated GIF 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 InlineQueryResultGif
[src]
pub fn new<I, U, T>(id: I, gif_url: U, thumb_url: T) -> Self where
I: Into<String>,
U: Into<String>,
T: Into<String>,
[src]
I: Into<String>,
U: Into<String>,
T: Into<String>,
Creates a new InlineQueryResultGif with empty optional parameters
Arguments
- id - Unique identifier for this result, 1-64 bytes
- gif_url - A valid URL for the GIF file. File size must not exceed 1MB
- thumb_url - URL of the static thumbnail for the result (jpeg or gif)
pub fn gif_width(self, gif_width: Integer) -> Self
[src]
Width of the GIF
pub fn gif_height(self, gif_height: Integer) -> Self
[src]
Height of the GIF
pub fn gif_duration(self, gif_duration: Integer) -> Self
[src]
Duration of the GIF
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 GIF 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]
self,
reply_markup: I
) -> Self
Inline keyboard attached to the message
pub fn input_message_content<C: Into<InputMessageContent>>(
self,
input_message_content: C
) -> Self
[src]
self,
input_message_content: C
) -> Self
Content of the message to be sent instead of the GIF animation
Trait Implementations
impl Clone for InlineQueryResultGif
[src]
fn clone(&self) -> InlineQueryResultGif
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InlineQueryResultGif
[src]
impl From<InlineQueryResultGif> for InlineQueryResult
[src]
fn from(original: InlineQueryResultGif) -> InlineQueryResult
[src]
impl Serialize for InlineQueryResultGif
[src]
Auto Trait Implementations
impl RefUnwindSafe for InlineQueryResultGif
impl Send for InlineQueryResultGif
impl Sync for InlineQueryResultGif
impl Unpin for InlineQueryResultGif
impl UnwindSafe for InlineQueryResultGif
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,