[][src]Struct tg_bot_models::ForwardMessage

pub struct ForwardMessage {
    pub chat_id: PolymorphChatId,
    pub from_chat_id: PolymorphFromChatId,
    pub disable_notification: Option<bool>,
    pub message_id: i64,
}

Use this method to forward messages of any kind. On success, the sent Message is returned.

Fields

chat_id: PolymorphChatId

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

from_chat_id: PolymorphFromChatId

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.

message_id: i64

Message identifier in the chat specified in from_chat_id

Trait Implementations

impl PartialEq<ForwardMessage> for ForwardMessage[src]

impl Clone for ForwardMessage[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<ForwardMessage> for ForwardMessage[src]

impl Debug for ForwardMessage[src]

impl Serialize for ForwardMessage[src]

impl<'de> Deserialize<'de> for ForwardMessage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]