Struct telegram_bot_api::methods::ForwardMessage
source · [−]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
sourceimpl Clone for ForwardMessage
impl Clone for ForwardMessage
sourcefn clone(&self) -> ForwardMessage
fn clone(&self) -> ForwardMessage
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ForwardMessage
impl Debug for ForwardMessage
sourceimpl<'de> Deserialize<'de> for ForwardMessage
impl<'de> Deserialize<'de> for ForwardMessage
sourcefn 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
sourceimpl Methods for ForwardMessage
impl Methods for ForwardMessage
sourceimpl Serialize for ForwardMessage
impl Serialize for ForwardMessage
Auto Trait Implementations
impl RefUnwindSafe for ForwardMessage
impl Send for ForwardMessage
impl Sync for ForwardMessage
impl Unpin for ForwardMessage
impl UnwindSafe for ForwardMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more