Message class

This object represents a message.

https://core.telegram.org/bots/api#message

Implementers
Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

Message({required int messageId, int? messageThreadId, User? from, Chat? senderChat, required int date, required Chat chat, User? forwardFrom, Chat? forwardFromChat, int? forwardFromMessageId, String? forwardSignature, String? forwardSenderName, int? forwardDate, bool? isTopicMessage, bool? isAutomaticForward, Message? replyToMessage, User? viaBot, int? editDate, bool? hasProtectedContent, String? mediaGroupId, String? authorSignature, String? text, List<MessageEntity>? entities, Animation? animation, Audio? audio, Document? document, List<PhotoSize>? photo, Sticker? sticker, Story? story, Video? video, VideoNote? videoNote, Voice? voice, String? caption, List<MessageEntity>? captionEntities, bool? hasMediaSpoiler, Contact? contact, Dice? dice, Game? game, Poll? poll, Venue? venue, Location? location, List<User>? newChatMembers, User? leftChatMember, String? newChatTitle, List<PhotoSize>? newChatPhoto, bool? deleteChatPhoto, bool? groupChatCreated, bool? supergroupChatCreated, bool? channelChatCreated, MessageAutoDeleteTimerChanged? messageAutoDeleteTimerChanged, int? migrateToChatId, int? migrateFromChatId, Message? pinnedMessage, Invoice? invoice, SuccessfulPayment? successfulPayment, UserShared? userShared, ChatShared? chatShared, String? connectedWebsite, WriteAccessAllowed? writeAccessAllowed, PassportData? passportData, ProximityAlertTriggered? proximityAlertTriggered, ForumTopicCreated? forumTopicCreated, ForumTopicEdited? forumTopicEdited, ForumTopicClosed? forumTopicClosed, ForumTopicReopened? forumTopicReopened, GeneralForumTopicHidden? generalForumTopicHidden, GeneralForumTopicUnhidden? generalForumTopicUnhidden, VoiceChatScheduled? videoChatScheduled, VoiceChatStarted? videoChatStarted, VoiceChatEnded? videoChatEnded, VoiceChatParticipantsInvited? videoChatParticipantsInvited, WebAppData? webAppData, InlineKeyboardMarkup? replyMarkup})
Message.fromJson(Map<String, dynamic> json)
factory

Properties

animation Animation?
getter/setter pair
audio Audio?
getter/setter pair
authorSignature String?
getter/setter pair
caption String?
getter/setter pair
captionEntities List<MessageEntity>?
getter/setter pair
channelChatCreated bool?
getter/setter pair
chat Chat
getter/setter pair
chatShared ChatShared?
getter/setter pair
connectedWebsite String?
getter/setter pair
contact Contact?
getter/setter pair
date int
getter/setter pair
date_ DateTime
getter/setter pair
deleteChatPhoto bool?
getter/setter pair
dice Dice?
getter/setter pair
document Document?
getter/setter pair
editDate int?
getter/setter pair
editDate_ DateTime?
getter/setter pair
entities List<MessageEntity>?
getter/setter pair
forumTopicClosed ForumTopicClosed?
getter/setter pair
forumTopicCreated ForumTopicCreated?
getter/setter pair
forumTopicEdited ForumTopicEdited?
getter/setter pair
forumTopicReopened ForumTopicReopened?
getter/setter pair
forwardDate int?
getter/setter pair
forwardDate_ DateTime?
getter/setter pair
forwardFrom User?
getter/setter pair
forwardFromChat Chat?
getter/setter pair
forwardFromMessageId int?
getter/setter pair
forwardSenderName String?
getter/setter pair
forwardSignature String?
getter/setter pair
from User?
getter/setter pair
game Game?
getter/setter pair
generalForumTopicHidden GeneralForumTopicHidden?
getter/setter pair
generalForumTopicUnhidden GeneralForumTopicUnhidden?
getter/setter pair
groupChatCreated bool?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasMediaSpoiler bool?
getter/setter pair
hasProtectedContent bool?
getter/setter pair
invoice Invoice?
getter/setter pair
isAutomaticForward bool?
getter/setter pair
isTopicMessage bool?
getter/setter pair
leftChatMember User?
getter/setter pair
location Location?
getter/setter pair
mediaGroupId String?
getter/setter pair
messageAutoDeleteTimerChanged MessageAutoDeleteTimerChanged?
getter/setter pair
messageId int
getter/setter pair
messageThreadId int?
getter/setter pair
migrateFromChatId int?
getter/setter pair
migrateToChatId int?
getter/setter pair
newChatMembers List<User>?
getter/setter pair
newChatPhoto List<PhotoSize>?
getter/setter pair
newChatTitle String?
getter/setter pair
passportData PassportData?
getter/setter pair
photo List<PhotoSize>?
getter/setter pair
pinnedMessage Message?
getter/setter pair
poll Poll?
getter/setter pair
proximityAlertTriggered ProximityAlertTriggered?
getter/setter pair
replyMarkup InlineKeyboardMarkup?
getter/setter pair
replyToMessage Message?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
senderChat Chat?
getter/setter pair
sticker Sticker?
getter/setter pair
story Story?
getter/setter pair
successfulPayment SuccessfulPayment?
getter/setter pair
supergroupChatCreated bool?
getter/setter pair
text String?
getter/setter pair
userShared UserShared?
getter/setter pair
venue Venue?
getter/setter pair
viaBot User?
getter/setter pair
video Video?
getter/setter pair
videoChatEnded VoiceChatEnded?
getter/setter pair
videoChatParticipantsInvited VoiceChatParticipantsInvited?
getter/setter pair
videoChatScheduled VoiceChatScheduled?
getter/setter pair
videoChatStarted VoiceChatStarted?
getter/setter pair
videoNote VideoNote?
getter/setter pair
voice Voice?
getter/setter pair
webAppData WebAppData?
getter/setter pair
writeAccessAllowed WriteAccessAllowed?
getter/setter pair

Methods

entityOf(String? type) MessageEntity?
getEntity(String? type) String?
indexOfEntity(String? type) int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited