Message
- class pyrogram.raw.types.Message
A message
Constructor of
Message
.- Details:
Layer:
194
ID:
94345242
- Parameters:
id (
int
32-bit
) – ID of the messagepeer_id (
Peer
) – Peer ID, the chat where this message was sentdate (
int
32-bit
) – Date of the messagemessage (
str
) – The messageout (
bool
, optional) – Is this an outgoing messagementioned (
bool
, optional) – Whether we were mentioned in this messagemedia_unread (
bool
, optional) – Whether there are unread media attachments in this messagesilent (
bool
, optional) – Whether this is a silent message (no notification triggered)post (
bool
, optional) – Whether this is a channel postfrom_scheduled (
bool
, optional) – Whether this is a scheduled messagelegacy (
bool
, optional) – This is a legacy message: it has to be refetched with the new layeredit_hide (
bool
, optional) – Whether the message should be shown as not modified to the user, even if an edit date is presentpinned (
bool
, optional) – Whether this message is pinnednoforwards (
bool
, optional) – Whether this message is protected and thus cannot be forwarded; clients should also prevent users from saving attached media (i.e. videos should only be streamed, photos should be kept in RAM, et cetera).invert_media (
bool
, optional) – If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.offline (
bool
, optional)video_processing_pending (
bool
, optional) – N/Afrom_id (
Peer
, optional) – ID of the sender of the messagefrom_boosts_applied (
int
32-bit
, optional)saved_peer_id (
Peer
, optional) – Messages fetched from a saved messages dialog » will have peer=inputPeerSelf and the saved_peer_id flag set to the ID of the saved dialog.fwd_from (
MessageFwdHeader
, optional) – Info about forwarded messagesvia_bot_id (
int
64-bit
, optional) – ID of the inline bot that generated the messagevia_business_bot_id (
int
64-bit
, optional)reply_to (
MessageReplyHeader
, optional) – Reply informationmedia (
MessageMedia
, optional) – Media attachmentreply_markup (
ReplyMarkup
, optional) – Reply markup (bot/inline keyboards)entities (List of
MessageEntity
, optional) – Message entities for styled textviews (
int
32-bit
, optional) – View count for channel postsforwards (
int
32-bit
, optional) – Forward counterreplies (
MessageReplies
, optional) – Info about post comments (for channels) or message replies (for groups)edit_date (
int
32-bit
, optional) – Last edit date of this messagepost_author (
str
, optional) – Name of the author of this message for channel posts (with signatures enabled)grouped_id (
int
64-bit
, optional) – Multiple media messages sent using messages.sendMultiMedia with the same grouped ID indicate an album or media groupreactions (
MessageReactions
, optional) – Reactions to this messagerestriction_reason (List of
RestrictionReason
, optional) – Contains the reason why access to this message must be restricted.ttl_period (
int
32-bit
, optional) – Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.quick_reply_shortcut_id (
int
32-bit
, optional)effect (
int
64-bit
, optional)factcheck (
FactCheck
, optional)