pub struct SendMediaGroup { /* private fields */ }
Expand description
Sends a group of photos or videos as an album.
Implementations§
Source§impl SendMediaGroup
impl SendMediaGroup
Sourcepub fn new<T>(chat_id: T, media: MediaGroup) -> Self
pub fn new<T>(chat_id: T, media: MediaGroup) -> Self
Creates a new SendMediaGroup
.
chat_id
- Unique identifier of the target chat.media
- Photos and videos to be sent; 2–10 items.
Sourcepub fn with_allow_paid_broadcast(self, value: bool) -> Self
pub fn with_allow_paid_broadcast(self, value: bool) -> Self
Sets a new value for the allow_paid_broadcast
flag.
§Arguments
value
- Whether to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot’s balance.
Sourcepub fn with_business_connection_id<T>(self, value: T) -> Self
pub fn with_business_connection_id<T>(self, value: T) -> Self
Sourcepub fn with_disable_notification(self, value: bool) -> Self
pub fn with_disable_notification(self, value: bool) -> Self
Sets a new value for the disable_notification
flag.
§Arguments
value
- Indicates whether to send the message silently or not; a user will receive a notification without sound.
Sourcepub fn with_message_effect_id<T>(self, value: T) -> Self
pub fn with_message_effect_id<T>(self, value: T) -> Self
Sets a new message effect ID.
§Arguments
value
- Unique identifier of the message effect to be added to the message; for private chats only.
Sourcepub fn with_message_thread_id(self, value: Integer) -> Self
pub fn with_message_thread_id(self, value: Integer) -> Self
Sets a new message thread ID.
§Arguments
value
- Unique identifier of the target message thread; supergroups only.
Sourcepub fn with_protect_content(self, value: bool) -> Self
pub fn with_protect_content(self, value: bool) -> Self
Sets a new value for the protect_content
flag.
§Arguments
value
- Indicates whether to protect the contents of the sent message from forwarding and saving.
Sourcepub fn with_reply_parameters(
self,
value: ReplyParameters,
) -> Result<Self, ReplyParametersError>
pub fn with_reply_parameters( self, value: ReplyParameters, ) -> Result<Self, ReplyParametersError>
Trait Implementations§
Source§impl Debug for SendMediaGroup
impl Debug for SendMediaGroup
Auto Trait Implementations§
impl Freeze for SendMediaGroup
impl !RefUnwindSafe for SendMediaGroup
impl Send for SendMediaGroup
impl Sync for SendMediaGroup
impl Unpin for SendMediaGroup
impl !UnwindSafe for SendMediaGroup
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