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: bool
true
, if the message is sent to a forum topic.
is_automatic_forward: bool
true
, if the message is a channel post that was automatically
forwarded to the connected discussion group.
has_protected_content: bool
true
, 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 for MessageCommon
impl PartialEq for MessageCommon
Source§impl Serialize for MessageCommon
impl Serialize for MessageCommon
impl StructuralPartialEq for MessageCommon
Auto Trait Implementations§
impl Freeze for MessageCommon
impl RefUnwindSafe for MessageCommon
impl Send for MessageCommon
impl Sync for MessageCommon
impl Unpin for MessageCommon
impl UnwindSafe for MessageCommon
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more