Struct tg_flows::MessageCommon
source · pub struct MessageCommon {
pub from: Option<User>,
pub sender_chat: Option<Chat>,
pub author_signature: Option<String>,
pub forward: Option<Forward>,
pub reply_to_message: Option<Box<Message>>,
pub edit_date: Option<DateTime<Utc>>,
pub media_kind: MediaKind,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub is_topic_message: bool,
pub is_automatic_forward: bool,
pub has_protected_content: bool,
}Fields§
§from: Option<User>Sender, empty for messages sent to channels.
sender_chat: Option<Chat>Sender of the message, sent on behalf of a chat. The channel itself for channel messages. The supergroup itself for messages from anonymous group administrators. The linked channel for messages automatically forwarded to the discussion group
Signature of the post author for messages in channels, or the custom title of an anonymous group administrator.
forward: Option<Forward>For forwarded messages, information about the forward
reply_to_message: Option<Box<Message>>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<DateTime<Utc>>Date the message was last edited in Unix time.
media_kind: MediaKind§reply_markup: Option<InlineKeyboardMarkup>Inline keyboard attached to the message. login_url buttons are
represented as ordinary url buttons.
is_topic_message: booltrue, if the message is sent to a forum topic.
is_automatic_forward: booltrue, if the message is a channel post that was automatically
forwarded to the connected discussion group.
has_protected_content: booltrue, if the message can’t be forwarded.
Trait Implementations§
source§impl Clone for MessageCommon
impl Clone for MessageCommon
source§fn clone(&self) -> MessageCommon
fn clone(&self) -> MessageCommon
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MessageCommon
impl Debug for MessageCommon
source§impl<'de> Deserialize<'de> for MessageCommon
impl<'de> Deserialize<'de> for MessageCommon
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl PartialEq<MessageCommon> for MessageCommon
impl PartialEq<MessageCommon> for MessageCommon
source§fn eq(&self, other: &MessageCommon) -> bool
fn eq(&self, other: &MessageCommon) -> bool
self and other values to be equal, and is used
by ==.