Struct telegram_bot_ars::types::ChannelPost
source · 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,
}Expand description
This object represents a channel message.
Fields§
§id: MessageIdUnique message identifier inside this chat.
date: i64Date the message was sent in Unix time.
chat: ChannelConversation 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: MessageKindKind of the message.
Trait Implementations§
source§impl Clone for ChannelPost
impl Clone for ChannelPost
source§fn clone(&self) -> ChannelPost
fn clone(&self) -> ChannelPost
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ChannelPost
impl Debug for ChannelPost
source§impl<'de> Deserialize<'de> for ChannelPost
impl<'de> Deserialize<'de> for ChannelPost
source§fn deserialize<D>(
deserializer: D
) -> Result<ChannelPost, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<ChannelPost, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MessageGetFiles for ChannelPost
impl MessageGetFiles for ChannelPost
source§impl MessageText for ChannelPost
impl MessageText for ChannelPost
source§impl PartialEq<ChannelPost> for ChannelPost
impl PartialEq<ChannelPost> for ChannelPost
source§fn eq(&self, other: &ChannelPost) -> bool
fn eq(&self, other: &ChannelPost) -> bool
source§impl PartialOrd<ChannelPost> for ChannelPost
impl PartialOrd<ChannelPost> for ChannelPost
source§fn partial_cmp(&self, other: &ChannelPost) -> Option<Ordering>
fn partial_cmp(&self, other: &ChannelPost) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more