pub struct CopyMessage { /* private fields */ }Expand description
Builder for the copyMessage method.
Implementations§
Source§impl CopyMessage
impl CopyMessage
Sourcepub fn caption(self, c: impl Into<String>) -> Self
pub fn caption(self, c: impl Into<String>) -> Self
Sets the caption (0–1024 characters) for media messages.
Sourcepub fn parse_mode(self, m: ParseMode) -> Self
pub fn parse_mode(self, m: ParseMode) -> Self
Sets the text parse mode (MarkdownV2, HTML, or Markdown).
Sourcepub fn disable_notification(self, v: bool) -> Self
pub fn disable_notification(self, v: bool) -> Self
Sends the message silently — the recipient receives no notification sound.
Sourcepub fn reply_markup(self, m: impl Into<ReplyMarkup>) -> Self
pub fn reply_markup(self, m: impl Into<ReplyMarkup>) -> Self
Attaches a reply markup (inline keyboard, reply keyboard, etc.).
Trait Implementations§
Source§impl IntoFuture for CopyMessage
impl IntoFuture for CopyMessage
Source§type IntoFuture = Pin<Box<dyn Future<Output = <CopyMessage as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <CopyMessage 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 CopyMessage
impl !RefUnwindSafe for CopyMessage
impl Send for CopyMessage
impl Sync for CopyMessage
impl Unpin for CopyMessage
impl UnsafeUnpin for CopyMessage
impl !UnwindSafe for CopyMessage
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