pub struct CopyMessages { /* private fields */ }Expand description
Builder for the copyMessages method.
Copies 1–100 messages without a forward link, preserving album grouping.
Returns a Vec<MessageId> of the sent messages.
Implementations§
Source§impl CopyMessages
impl CopyMessages
Sourcepub fn message_thread_id(self, id: i64) -> Self
pub fn message_thread_id(self, id: i64) -> Self
Forum topic thread ID.
Sourcepub fn direct_messages_topic_id(self, id: i64) -> Self
pub fn direct_messages_topic_id(self, id: i64) -> Self
Identifier of a direct messages chat topic.
Sourcepub fn disable_notification(self, v: bool) -> Self
pub fn disable_notification(self, v: bool) -> Self
Sends the messages silently — recipients receive no notification sound.
Sourcepub fn protect_content(self, v: bool) -> Self
pub fn protect_content(self, v: bool) -> Self
Protects the messages from being forwarded or saved.
Sourcepub fn remove_caption(self, v: bool) -> Self
pub fn remove_caption(self, v: bool) -> Self
Copies the messages without their captions.
Trait Implementations§
Source§impl IntoFuture for CopyMessages
impl IntoFuture for CopyMessages
Source§type Output = Result<Vec<MessageId>, Error>
type Output = Result<Vec<MessageId>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <CopyMessages as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <CopyMessages as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl Freeze for CopyMessages
impl !RefUnwindSafe for CopyMessages
impl Send for CopyMessages
impl Sync for CopyMessages
impl Unpin for CopyMessages
impl UnsafeUnpin for CopyMessages
impl !UnwindSafe for CopyMessages
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