[][src]Struct actix_telegram::methods::SendMediaGroup

pub struct SendMediaGroup { /* fields omitted */ }

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

Methods

impl SendMediaGroup
[src]

pub fn set_chat_id<__T: Into<ChatIdOrUsername>>(
    &mut self,
    val: __T
) -> &mut Self
[src]

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

pub fn set_media<__T: Into<Vec<InputMediaPhotoOrInputMediaVideo>>>(
    &mut self,
    val: __T
) -> &mut Self
[src]

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

pub fn set_disable_notification<__T: Into<Option<bool>>>(
    &mut self,
    val: __T
) -> &mut Self
[src]

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

pub fn set_reply_to_message_id<__T: Into<Option<Integer>>>(
    &mut self,
    val: __T
) -> &mut Self
[src]

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

impl SendMediaGroup
[src]

pub fn new(
    chat_id: impl Into<ChatIdOrUsername>,
    media: impl Into<Vec<InputMediaPhotoOrInputMediaVideo>>
) -> Self
[src]

Trait Implementations

impl Debug for SendMediaGroup
[src]

impl Message for SendMediaGroup
[src]

type Result = Result<Vec<Message>, ()>

The type of value that this message will resolved with if it is successful. Read more

impl Handler<SendMediaGroup> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Vec<Message>, Error = ()>>

The type of value that this handle will return

impl Serialize for SendMediaGroup
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T