Struct tg_bot_models::ForwardMessage [−][src]
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 Debug for ForwardMessage
[src]
impl Debug for ForwardMessage
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ForwardMessage
[src]
impl Clone for ForwardMessage
fn clone(&self) -> ForwardMessage
[src]
fn clone(&self) -> ForwardMessage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for ForwardMessage
[src]
impl PartialEq for ForwardMessage
fn eq(&self, other: &ForwardMessage) -> bool
[src]
fn eq(&self, other: &ForwardMessage) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ForwardMessage) -> bool
[src]
fn ne(&self, other: &ForwardMessage) -> bool
This method tests for !=
.
impl PartialOrd for ForwardMessage
[src]
impl PartialOrd for ForwardMessage
fn partial_cmp(&self, other: &ForwardMessage) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &ForwardMessage) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &ForwardMessage) -> bool
[src]
fn lt(&self, other: &ForwardMessage) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &ForwardMessage) -> bool
[src]
fn le(&self, other: &ForwardMessage) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &ForwardMessage) -> bool
[src]
fn gt(&self, other: &ForwardMessage) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &ForwardMessage) -> bool
[src]
fn ge(&self, other: &ForwardMessage) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Auto Trait Implementations
impl Send for ForwardMessage
impl Send for ForwardMessage
impl Sync for ForwardMessage
impl Sync for ForwardMessage