pub struct ForwardMessage {
pub chat_id: ChatId,
pub from_chat_id: ChatId,
pub disable_notification: Option<bool>,
pub protect_content: Option<bool>,
pub message_id: i64,
}
Expand description
Use this method to forward messages of any kind. Service messages can’t be forwarded. On success, the sent Message is returned.
Fields§
§chat_id: ChatId
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
from_chat_id: ChatId
Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)
disable_notification: Option<bool>
Sends the message silently. Users will receive a notification with no sound.
protect_content: Option<bool>
Protects the contents of the forwarded message from forwarding and saving
message_id: i64
Message identifier in the chat specified in from_chat_id
Implementations§
Trait Implementations§
Source§impl Clone for ForwardMessage
impl Clone for ForwardMessage
Source§fn clone(&self) -> ForwardMessage
fn clone(&self) -> ForwardMessage
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 ForwardMessage
impl Debug for ForwardMessage
Source§impl<'de> Deserialize<'de> for ForwardMessage
impl<'de> Deserialize<'de> for ForwardMessage
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
Source§impl Methods for ForwardMessage
impl Methods for ForwardMessage
Auto Trait Implementations§
impl Freeze for ForwardMessage
impl RefUnwindSafe for ForwardMessage
impl Send for ForwardMessage
impl Sync for ForwardMessage
impl Unpin for ForwardMessage
impl UnwindSafe for ForwardMessage
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