Message class
Message.
ID: 76bec211
.
- Inheritance
-
- Object
- TlObject
- TlConstructor
- MessageBase
- Message
Constructors
-
Message({required bool out, required bool mentioned, required bool mediaUnread, required bool silent, required bool post, required bool fromScheduled, required bool legacy, required bool editHide, required bool pinned, required bool noforwards, required bool invertMedia, required int id, PeerBase? fromId, required PeerBase peerId, PeerBase? savedPeerId, MessageFwdHeaderBase? fwdFrom, int? viaBotId, MessageReplyHeaderBase? replyTo, required DateTime date, required String message, MessageMediaBase? media, ReplyMarkupBase? replyMarkup, List<
MessageEntityBase> ? entities, int? views, int? forwards, MessageRepliesBase? replies, DateTime? editDate, String? postAuthor, int? groupedId, MessageReactionsBase? reactions, List<RestrictionReasonBase> ? restrictionReason, int? ttlPeriod}) -
Message constructor.
const
- Message.deserialize(BinaryReader reader)
-
Deserialize.
factory
Properties
- date → DateTime
-
Date.
final
- editDate → DateTime?
-
Edit Date.
final
- editHide → bool
-
edit_hide: bit 21 of flags.21?true
final
-
entities
→ List<
MessageEntityBase> ? -
Entities.
final
- flags → int
-
Flags.
no setter
- forwards → int?
-
Forwards.
final
- fromId → PeerBase?
-
From Id.
final
- fromScheduled → bool
-
from_scheduled: bit 18 of flags.18?true
final
- fwdFrom → MessageFwdHeaderBase?
-
Fwd From.
final
- groupedId → int?
-
Grouped Id.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Id.
final
- invertMedia → bool
-
invert_media: bit 27 of flags.27?true
final
- legacy → bool
-
legacy: bit 19 of flags.19?true
final
- media → MessageMediaBase?
-
Media.
final
- mediaUnread → bool
-
media_unread: bit 5 of flags.5?true
final
- mentioned → bool
-
mentioned: bit 4 of flags.4?true
final
- message → String
-
Message.
final
- noforwards → bool
-
noforwards: bit 26 of flags.26?true
final
- out → bool
-
out: bit 1 of flags.1?true
final
- peerId → PeerBase
-
Peer Id.
final
- pinned → bool
-
pinned: bit 24 of flags.24?true
final
- post → bool
-
post: bit 14 of flags.14?true
final
- postAuthor → String?
-
Post Author.
final
- reactions → MessageReactionsBase?
-
Reactions.
final
- replies → MessageRepliesBase?
-
Replies.
final
- replyMarkup → ReplyMarkupBase?
-
Reply Markup.
final
- replyTo → MessageReplyHeaderBase?
-
Reply To.
final
-
restrictionReason
→ List<
RestrictionReasonBase> ? -
Restriction Reason.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- savedPeerId → PeerBase?
-
Saved Peer Id.
final
- silent → bool
-
silent: bit 13 of flags.13?true
final
- ttlPeriod → int?
-
Ttl Period.
final
- viaBotId → int?
-
Via Bot Id.
final
- views → int?
-
Views.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
List< int> buffer) → void -
Serialize.
override
-
toJson(
) → Map< String, dynamic> -
Converts an object to JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited