Message constructor
Message({
- required int messageId,
- User? from,
- Chat? senderChat,
- required int date,
- required Chat chat,
- User? forwardFrom,
- Chat? forwardFromChat,
- int? forwardFromMessageId,
- String? forwardSignature,
- String? forwardSenderName,
- int? forwardDate,
- 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,
- Video? video,
- VideoNote? videoNote,
- Voice? voice,
- 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,
- PassportData? passportData,
- ProximityAlertTriggered? proximityAlertTriggered,
- VideoChatScheduled? videoChatScheduled,
- VideoChatStarted? videoChatStarted,
- VideoChatEnded? videoChatEnded,
- VideoChatParticipantsInvited? videoChatParticipantsInvited,
- WebAppData? webAppData,
- ReplyMarkup? replyMarkup,
Basic constructor
Implementation
Message({
required this.messageId,
this.from,
this.senderChat,
required this.date,
required this.chat,
this.forwardFrom,
this.forwardFromChat,
this.forwardFromMessageId,
this.forwardSignature,
this.forwardSenderName,
this.forwardDate,
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.video,
this.videoNote,
this.voice,
this.caption,
this.captionEntities,
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.connectedWebsite,
this.passportData,
this.proximityAlertTriggered,
this.videoChatScheduled,
this.videoChatStarted,
this.videoChatEnded,
this.videoChatParticipantsInvited,
this.webAppData,
this.replyMarkup,
});