pub struct ForwardMessages { /* private fields */ }
Expand description
Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can’t be forwarded, null will be returned instead of the message
Implementations§
Source§impl ForwardMessages
impl ForwardMessages
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ForwardMessagesBuilder
pub fn chat_id(&self) -> i64
pub fn from_chat_id(&self) -> i64
pub fn message_ids(&self) -> &Vec<i64>
pub fn options(&self) -> &MessageSendOptions
pub fn send_copy(&self) -> bool
pub fn remove_caption(&self) -> bool
pub fn only_preview(&self) -> bool
Trait Implementations§
Source§impl AsRef<ForwardMessages> for ForwardMessages
impl AsRef<ForwardMessages> for ForwardMessages
Source§fn as_ref(&self) -> &ForwardMessages
fn as_ref(&self) -> &ForwardMessages
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ForwardMessages
impl Clone for ForwardMessages
Source§fn clone(&self) -> ForwardMessages
fn clone(&self) -> ForwardMessages
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ForwardMessages
impl Debug for ForwardMessages
Source§impl Default for ForwardMessages
impl Default for ForwardMessages
Source§fn default() -> ForwardMessages
fn default() -> ForwardMessages
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ForwardMessages
impl<'de> Deserialize<'de> for ForwardMessages
Source§fn 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
Auto Trait Implementations§
impl Freeze for ForwardMessages
impl RefUnwindSafe for ForwardMessages
impl Send for ForwardMessages
impl Sync for ForwardMessages
impl Unpin for ForwardMessages
impl UnwindSafe for ForwardMessages
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more