Message constructor
const
Message({
- User? from,
- Chat? senderChat,
- Message? replyToMessage,
- User? viaBot,
- int? editDate,
- 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,
- ForumTopicCreated? forumTopicCreated,
- ForumTopicClosed? forumTopicClosed,
- ForumTopicReopened? forumTopicReopened,
- VideoChatScheduled? videoChatScheduled,
- VideoChatStarted? videoChatStarted,
- VideoChatEnded? videoChatEnded,
- VideoChatParticipantsInvited? videoChatParticipantsInvited,
- WebAppData? webAppData,
- InlineKeyboardMarkup? replyMarkup,
- bool? hasProtectedContent,
- bool? isAutomaticForward,
- bool? isTopicMessage,
- int? messageThreadId,
- bool? hasMediaSpoiler,
- ForumTopicEdited? forumTopicEdited,
- GeneralForumTopicHidden? generalForumTopicHidden,
- WriteAccessAllowed? writeAccessAllowed,
- Story? story,
- ExternalReplyInfo? externalReply,
- TextQuote? quote,
- LinkPreviewOptions? linkPreviewOptions,
- Giveaway? giveaway,
- GiveawayCreated? giveawayCreated,
- GiveawayWinners? giveawayWinners,
- GiveawayCompleted? giveawayCompleted,
- MessageOrigin? forwardOrigin,
- required Chat chat,
- required int date,
- required int messageId,
- ChatBoostAdded? boostAdded,
- int? senderBoostCount,
- Story? replyToStory,
- String? businessConnectionId,
- User? senderBusinessBot,
- bool? isFromOffline,
- ChatBackground? chatBackgroundSet,
- String? effectId,
- bool? showCaptionAboveMedia,
- PaidMediaInfo? paidMedia,
- RefundedPayment? refundedPayment,
Creates a Message object.
Implementation
const Message({
this.from,
this.senderChat,
this.replyToMessage,
this.viaBot,
this.editDate,
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.forumTopicCreated,
this.forumTopicClosed,
this.forumTopicReopened,
this.videoChatScheduled,
this.videoChatStarted,
this.videoChatEnded,
this.videoChatParticipantsInvited,
this.webAppData,
this.replyMarkup,
this.hasProtectedContent,
this.isAutomaticForward,
this.isTopicMessage,
this.messageThreadId,
this.usersShared,
this.chatShared,
this.hasMediaSpoiler,
this.forumTopicEdited,
this.generalForumTopicHidden,
this.generalForumTopicUnhidden,
this.writeAccessAllowed,
this.story,
this.externalReply,
this.quote,
this.linkPreviewOptions,
this.giveaway,
this.giveawayCreated,
this.giveawayWinners,
this.giveawayCompleted,
this.forwardOrigin,
required this.chat,
required this.date,
required this.messageId,
this.boostAdded,
this.senderBoostCount,
this.replyToStory,
this.businessConnectionId,
this.senderBusinessBot,
this.isFromOffline,
this.chatBackgroundSet,
this.effectId,
this.showCaptionAboveMedia,
this.paidMedia,
this.refundedPayment,
});