pub struct CopyMessage { /* private fields */ }
Expand description
Use this method to copy messages of any kind. Service messages and invoice messages can't be copied. A quiz Poll
can be copied only if the value of the field correct_option_id is known to the bot. The method is analogous to the method forward_message
, but the copied message doesn't have a link to the original message. Returns the MessageId
of the sent message on success.
Trait Implementations§
Source§impl Clone for CopyMessage
impl Clone for CopyMessage
Source§fn clone(&self) -> CopyMessage
fn clone(&self) -> CopyMessage
Returns a duplicate 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 moreSource§impl Debug for CopyMessage
impl Debug for CopyMessage
Source§impl<'de> Deserialize<'de> for CopyMessage
impl<'de> Deserialize<'de> for CopyMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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 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