Struct tg_bot_models::SendMediaGroup [−][src]
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 Debug for SendMediaGroup
[src]
impl Debug for SendMediaGroup
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for SendMediaGroup
[src]
impl Clone for SendMediaGroup
fn clone(&self) -> SendMediaGroup
[src]
fn clone(&self) -> SendMediaGroup
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for SendMediaGroup
[src]
impl PartialEq for SendMediaGroup
fn eq(&self, other: &SendMediaGroup) -> bool
[src]
fn eq(&self, other: &SendMediaGroup) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SendMediaGroup) -> bool
[src]
fn ne(&self, other: &SendMediaGroup) -> bool
This method tests for !=
.
impl PartialOrd for SendMediaGroup
[src]
impl PartialOrd for SendMediaGroup
fn partial_cmp(&self, other: &SendMediaGroup) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &SendMediaGroup) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &SendMediaGroup) -> bool
[src]
fn lt(&self, other: &SendMediaGroup) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &SendMediaGroup) -> bool
[src]
fn le(&self, other: &SendMediaGroup) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &SendMediaGroup) -> bool
[src]
fn gt(&self, other: &SendMediaGroup) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &SendMediaGroup) -> bool
[src]
fn ge(&self, other: &SendMediaGroup) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Auto Trait Implementations
impl Send for SendMediaGroup
impl Send for SendMediaGroup
impl Sync for SendMediaGroup
impl Sync for SendMediaGroup