Struct tbot::methods::CopyMessage
source · pub struct CopyMessage<'a> { /* private fields */ }
Expand description
Copies a message.
Reflects the copyMessage
method.
Implementations§
source§impl<'a> CopyMessage<'a>
impl<'a> CopyMessage<'a>
Replaces the original caption with the provided one.
Reflects the caption
and parse_mode
parameters.
sourcepub const fn is_notification_disabled(self, is_disabled: bool) -> Self
pub const fn is_notification_disabled(self, is_disabled: bool) -> Self
Configures whether the message is sent silently.
Reflects the disable_notification
parameter.
sourcepub const fn allow_sending_without_reply(self) -> Self
pub const fn allow_sending_without_reply(self) -> Self
Configures whether this message should be sent even
if the replied-to message is not found.
Reflects the allow_sending_without_reply
parameter.
sourcepub const fn in_reply_to(self, id: Id) -> Self
pub const fn in_reply_to(self, id: Id) -> Self
Configures which message this message is sent in reply to.
Reflects the reply_to_message_id
parameter.
sourcepub fn reply_markup(self, markup: impl Into<Any>) -> Self
pub fn reply_markup(self, markup: impl Into<Any>) -> Self
Reflects the reply_markup
parameter.
source§impl CopyMessage<'_>
impl CopyMessage<'_>
sourcepub async fn call(self) -> Result<Id, MethodCall>
pub async fn call(self) -> Result<Id, MethodCall>
Calls the method.
Trait Implementations§
source§impl<'a> Clone for CopyMessage<'a>
impl<'a> Clone for CopyMessage<'a>
source§fn clone(&self) -> CopyMessage<'a>
fn clone(&self) -> CopyMessage<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more