[][src]Struct telegrambot::vision::Message

pub struct Message {
    pub id: i64,
    pub from: Option<User>,
    pub date: i64,
    pub forward: Option<Forward>,
    pub reply_to_message: Option<PossibilityMessage>,
    pub edit_date: Option<i64>,
    pub chat: VMessageChat,
    pub is_edited: bool,
}

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_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialOrd<Message> for Message[src]

impl PartialEq<Message> for Message[src]

impl Debug for Message[src]

Auto Trait Implementations

impl Send for Message

impl Sync for Message

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err