[][src]Struct tg_bot_models::SendMediaGroup

pub struct SendMediaGroup {
    pub chat_id: PolymorphChatId,
    pub media: Vec<InputMedia>,
    pub disable_notification: Option<bool>,
    pub reply_to_message_id: Option<i64>,
}

Use this method to send a group of photos or videos as an album. On success, an array of the sent Messages is returned.

Fields

chat_id: PolymorphChatId

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

media: Vec<InputMedia>

A JSON-serialized array describing photos and videos to be sent, must include 2–10 items

disable_notification: Option<bool>

Sends the messages silently. Users will receive a notification with no sound.

reply_to_message_id: Option<i64>

If the messages are a reply, ID of the original message

Trait Implementations

impl PartialEq<SendMediaGroup> for SendMediaGroup[src]

impl Clone for SendMediaGroup[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<SendMediaGroup> for SendMediaGroup[src]

impl Debug for SendMediaGroup[src]

impl Serialize for SendMediaGroup[src]

impl<'de> Deserialize<'de> for SendMediaGroup[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]