pub struct ForwardMessage {
pub chat_id: ChatId,
pub from_chat_id: ChatId,
pub disable_notification: Option<bool>,
pub message_id: i64,
pub protect_content: Option<bool>,
}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: ChatIdUnique identifier for the target chat or username of the target channel (in the format @channelusername)
from_chat_id: ChatIdUnique identifier for the chat where the original message was sent (in the format @channelusername)
disable_notification: Option<bool>Sends the message silently. Users will receive a notification with no sound.
message_id: i64Message identifier in the chat specified in from_chat_id
protect_content: Option<bool>Protects the contents of the sent message from forwarding and saving
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 Serialize for ForwardMessage
impl Serialize for ForwardMessage
Source§impl TelegramMethod for ForwardMessage
impl TelegramMethod for ForwardMessage
impl JsonMethod 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