Struct teloxide_core::payloads::ForwardMessage
source · pub struct ForwardMessage {
pub chat_id: Recipient,
pub from_chat_id: Recipient,
pub message_id: MessageId,
pub message_thread_id: Option<i32>,
pub disable_notification: Option<bool>,
pub protect_content: Option<bool>,
}
Expand description
Use this method to forward messages of any kind. On success, the sent Message
is returned.
Fields§
§chat_id: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
from_chat_id: Recipient
Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername
)
message_id: MessageId
Message identifier in the chat specified in from_chat_id
message_thread_id: Option<i32>
Unique identifier for the target message thread (topic) of the forum; for forum supergroups only
disable_notification: Option<bool>
Sends the message silently. Users will receive a notification with no sound.
protect_content: Option<bool>
Protects the contents of sent messages from forwarding and saving
Implementations§
Trait Implementations§
source§impl Clone for ForwardMessage
impl Clone for ForwardMessage
source§impl Debug for ForwardMessage
impl Debug for ForwardMessage
source§impl Hash for ForwardMessage
impl Hash for ForwardMessage
source§impl PartialEq<ForwardMessage> for ForwardMessage
impl PartialEq<ForwardMessage> for ForwardMessage
source§fn eq(&self, other: &ForwardMessage) -> bool
fn eq(&self, other: &ForwardMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for ForwardMessage
impl Payload for ForwardMessage
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates
with
big timeout
), the minimum timeout that should be used.source§impl Serialize for ForwardMessage
impl Serialize for ForwardMessage
impl Eq for ForwardMessage
impl StructuralEq for ForwardMessage
impl StructuralPartialEq 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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.