[][src]Struct telegram_bot_raw::types::message::Message

pub struct Message {
    pub id: MessageId,
    pub from: User,
    pub date: Integer,
    pub chat: MessageChat,
    pub forward: Option<Forward>,
    pub reply_to_message: Option<Box<MessageOrChannelPost>>,
    pub edit_date: Option<Integer>,
    pub kind: MessageKind,
}

This object represents a chat message.

Fields

id: MessageId

Unique message identifier inside this chat.

from: User

Sender, can be empty for messages sent to channels.

date: Integer

Date the message was sent in Unix time.

chat: MessageChat

Conversation the message belongs to.

forward: Option<Forward>

Information about the original message.

reply_to_message: Option<Box<MessageOrChannelPost>>

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<Integer>

Date the message was last edited in Unix time.

kind: MessageKind

Kind of the message.

Trait Implementations

impl Clone for Message[src]

impl Debug for Message[src]

impl<'de> Deserialize<'de> for Message[src]

impl PartialEq<Message> for Message[src]

impl PartialOrd<Message> for Message[src]

impl StructuralPartialEq for Message[src]

impl ToMessageId for Message[src]

impl ToSourceChat for Message[src]

Auto Trait Implementations

impl RefUnwindSafe for Message[src]

impl Send for Message[src]

impl Sync for Message[src]

impl Unpin for Message[src]

impl UnwindSafe for Message[src]

Blanket Implementations

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

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

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

impl<M> CanDeleteMessage for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanEditMessageCaption for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanEditMessageLiveLocation for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanEditMessageReplyMarkup for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanEditMessageText for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanForwardMessage for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanPinMessage for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendAudio for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendContact for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendDocument for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendLocation for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendMessage for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendPhoto for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendPoll for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendVenue for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendVideo for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanStopMessageLiveLocation for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanStopPoll for M where
    M: ToMessageId + ToSourceChat
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.