[−][src]Struct telegrambot::vision::Message
Fields
id: i64
Unique message identifier inside this chat.
from: Option<User>
Sender, can be empty for messages sent to channels.
date: i64
Date the message was sent in Unix time.
forward: Option<Forward>
Information about the original message.
reply_to_message: Option<PossibilityMessage>
For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
edit_date: Option<i64>
Date the message was last edited in Unix time.
chat: VMessageChat
Message kind, Message | Channel
is_edited: bool
Message is edited
Methods
impl Message
[src]
pub fn is_channel(&self) -> bool
[src]
pub fn is_group(&self) -> bool
[src]
pub fn is_private(&self) -> bool
[src]
pub fn is_supergroup(&self) -> bool
[src]
Trait Implementations
impl Clone for Message
[src]
fn clone(&self) -> Message
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd<Message> for Message
[src]
fn partial_cmp(&self, other: &Message) -> Option<Ordering>
[src]
fn lt(&self, other: &Message) -> bool
[src]
fn le(&self, other: &Message) -> bool
[src]
fn gt(&self, other: &Message) -> bool
[src]
fn ge(&self, other: &Message) -> bool
[src]
impl PartialEq<Message> for Message
[src]
impl Debug for Message
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
U: TryFrom<T>,