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

pub struct ChannelPost {
    pub id: MessageId,
    pub date: Integer,
    pub chat: Channel,
    pub forward: Option<Forward>,
    pub reply_to_message: Option<Box<MessageOrChannelPost>>,
    pub edit_date: Option<Integer>,
    pub kind: MessageKind,
}

This object represents a channel message.

Fields

id: MessageId

Unique message identifier inside this chat.

date: Integer

Date the message was sent in Unix time.

chat: Channel

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 ChannelPost[src]

impl Debug for ChannelPost[src]

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

impl PartialEq<ChannelPost> for ChannelPost[src]

impl PartialOrd<ChannelPost> for ChannelPost[src]

impl StructuralPartialEq for ChannelPost[src]

impl ToMessageId for ChannelPost[src]

impl ToSourceChat for ChannelPost[src]

Auto Trait Implementations

impl RefUnwindSafe for ChannelPost[src]

impl Send for ChannelPost[src]

impl Sync for ChannelPost[src]

impl Unpin for ChannelPost[src]

impl UnwindSafe for ChannelPost[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.