Struct teloxide_core::payloads::ForwardMessage
source · [−]pub struct ForwardMessage {
pub chat_id: Recipient,
pub from_chat_id: Recipient,
pub message_id: MessageId,
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: RecipientUnique identifier for the target chat or username of the target channel (in the format @channelusername)
from_chat_id: RecipientUnique identifier for the chat where the original message was sent (or channel username in the format @channelusername)
message_id: MessageIdMessage identifier in the chat specified in from_chat_id
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
sourceimpl Clone for ForwardMessage
impl Clone for ForwardMessage
sourcefn clone(&self) -> ForwardMessageⓘNotable traits for ForwardMessageimpl Payload for ForwardMessage type Output = Message;
fn clone(&self) -> ForwardMessageⓘNotable traits for ForwardMessageimpl Payload for ForwardMessage type Output = Message;
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ForwardMessage
impl Debug for ForwardMessage
sourceimpl Hash for ForwardMessage
impl Hash for ForwardMessage
sourceimpl PartialEq<ForwardMessage> for ForwardMessage
impl PartialEq<ForwardMessage> for ForwardMessage
sourcefn eq(&self, other: &ForwardMessage) -> bool
fn eq(&self, other: &ForwardMessage) -> bool
sourceimpl Payload for ForwardMessage
impl Payload for ForwardMessage
sourcefn 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. Read moresourceimpl 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
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
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.