Struct carapax::types::SendMediaGroup
source · 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) -> SendMediaGroup
pub fn new<T>(chat_id: T, media: MediaGroup) -> SendMediaGroup
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_business_connection_id<T>(self, value: T) -> SendMediaGroup
pub fn with_business_connection_id<T>(self, value: T) -> SendMediaGroup
sourcepub fn with_disable_notification(self, value: bool) -> SendMediaGroup
pub fn with_disable_notification(self, value: bool) -> SendMediaGroup
Sets a new value for a 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_thread_id(self, value: i64) -> SendMediaGroup
pub fn with_message_thread_id(self, value: i64) -> SendMediaGroup
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) -> SendMediaGroup
pub fn with_protect_content(self, value: bool) -> SendMediaGroup
Sets a new value for a 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<SendMediaGroup, ReplyParametersError>
pub fn with_reply_parameters( self, value: ReplyParameters ) -> Result<SendMediaGroup, 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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more