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

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

This object represents a channel message.

Fields

id: MessageId

Unique message identifier inside this chat.

date: i64

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, Global>>

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.

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

impl MessageText 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> Instrument for T[src]

impl<T> Instrument 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]