Struct telegram_bot2::models::CopyMessage
source · 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 MessageIdof 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 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 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