pub struct SendMediaGroup<'a> {
pub chat_id: ChatTarget<'a>,
pub media: Vec<InputMedia>,
pub disable_notification: Option<bool>,
pub reply_to_message_id: Option<MessageId>,
pub allow_sending_without_reply: Option<bool>,
}Expand description
Use this method to send a group of photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type.
On success, an array of Messages that were sent is returned.
Fields§
§chat_id: ChatTarget<'a>§media: Vec<InputMedia>must include 2-10 items
disable_notification: Option<bool>Sends messages silently. Users will receive a notification with no sound.
reply_to_message_id: Option<MessageId>If the messages are a reply, ID of the original message
allow_sending_without_reply: Option<bool>Pass True, if the message should be sent even if the specified replied-to message is not found
Trait Implementations§
Source§impl<'a> Clone for SendMediaGroup<'a>
impl<'a> Clone for SendMediaGroup<'a>
Source§fn clone(&self) -> SendMediaGroup<'a>
fn clone(&self) -> SendMediaGroup<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SendMediaGroup<'a>
impl<'a> Debug for SendMediaGroup<'a>
Source§impl<'de, 'a> Deserialize<'de> for SendMediaGroup<'a>
impl<'de, 'a> Deserialize<'de> for SendMediaGroup<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for SendMediaGroup<'_>
impl Method for SendMediaGroup<'_>
Source§impl<'a> PartialEq for SendMediaGroup<'a>
impl<'a> PartialEq for SendMediaGroup<'a>
Source§impl<'a> Serialize for SendMediaGroup<'a>
impl<'a> Serialize for SendMediaGroup<'a>
impl<'a> Eq for SendMediaGroup<'a>
impl<'a> StructuralPartialEq for SendMediaGroup<'a>
Auto Trait Implementations§
impl<'a> Freeze for SendMediaGroup<'a>
impl<'a> RefUnwindSafe for SendMediaGroup<'a>
impl<'a> Send for SendMediaGroup<'a>
impl<'a> Sync for SendMediaGroup<'a>
impl<'a> Unpin for SendMediaGroup<'a>
impl<'a> UnwindSafe for SendMediaGroup<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more