Message constructor
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,
- 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,
- String? connectedWebsite,
- WriteAccessAllowed? writeAccessAllowed,
- PassportData? passportData,
- ProximityAlertTriggered? proximityAlertTriggered,
- ForumTopicCreated? forumTopicCreated,
- ForumTopicEdited? forumTopicEdited,
- ForumTopicClosed? forumTopicClosed,
- ForumTopicReopened? forumTopicReopened,
- GeneralForumTopicHidden? generalForumTopicHidden,
- VoiceChatScheduled? videoChatScheduled,
- VoiceChatStarted? videoChatStarted,
- VoiceChatEnded? videoChatEnded,
- VoiceChatParticipantsInvited? videoChatParticipantsInvited,
- WebAppData? webAppData,
- InlineKeyboardMarkup? replyMarkup,
Implementation
Message({
required this.messageId,
this.messageThreadId,
this.from,
this.senderChat,
required this.date,
required this.chat,
this.forwardFrom,
this.forwardFromChat,
this.forwardFromMessageId,
this.forwardSignature,
this.forwardSenderName,
this.forwardDate,
this.isTopicMessage,
this.isAutomaticForward,
this.replyToMessage,
this.viaBot,
this.editDate,
this.hasProtectedContent,
this.mediaGroupId,
this.authorSignature,
this.text,
this.entities,
this.animation,
this.audio,
this.document,
this.photo,
this.sticker,
this.story,
this.video,
this.videoNote,
this.voice,
this.caption,
this.captionEntities,
this.hasMediaSpoiler,
this.contact,
this.dice,
this.game,
this.poll,
this.venue,
this.location,
this.newChatMembers,
this.leftChatMember,
this.newChatTitle,
this.newChatPhoto,
this.deleteChatPhoto,
this.groupChatCreated,
this.supergroupChatCreated,
this.channelChatCreated,
this.messageAutoDeleteTimerChanged,
this.migrateToChatId,
this.migrateFromChatId,
this.pinnedMessage,
this.invoice,
this.successfulPayment,
this.userShared,
this.chatShared,
this.connectedWebsite,
this.writeAccessAllowed,
this.passportData,
this.proximityAlertTriggered,
this.forumTopicCreated,
this.forumTopicEdited,
this.forumTopicClosed,
this.forumTopicReopened,
this.generalForumTopicHidden,
this.generalForumTopicUnhidden,
this.videoChatScheduled,
this.videoChatStarted,
this.videoChatEnded,
this.videoChatParticipantsInvited,
this.webAppData,
this.replyMarkup,
});