TeleDartMessage class

A recieved message

It is the object which gets returned by listeners such as TeleDart.onMessage.

This class combines Message and TeleDart to add the reply methods (like reply or replyPhoto), which are shortcuts that let you automatically reply to recieved messages.

Inheritance

Constructors

TeleDartMessage(TeleDart _teledart, Message message)

Properties

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

Methods

copyTo(int chatId, {int? messageThreadId, int? replyToMessageId, String? caption, String? parseMode, List<MessageEntity>? captionEntities, bool? disableNotification, bool? protectContent, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) Future<MessageId>
Copy the recieved message to a channel or chat.
entityOf(String? type) MessageEntity?
inherited
forwardTo(int chatId, {int? messageThreadId, bool? disableNotification, bool? protectContent}) Future<Message>
Forward the recieved message to a channel or chat.
getEntity(String? type) String?
inherited
indexOfEntity(String? type) int
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reply(String text, {bool withQuote = false, String? parseMode, List<MessageEntity>? entities, bool? disableWebPagePreview, bool? disableNotification, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with text
replyAnimation(dynamic animation, {bool withQuote = false, int? duration, int? width, int? height, dynamic thumbnail, String? caption, String? parseMode, List<MessageEntity>? captionEntities, bool? hasSpoiler, bool? disableNotification, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with an animation (GIF or H.264/MPEG-4 AVC video without sound)
replyAudio(dynamic audio, {bool withQuote = false, String? caption, String? parseMode, List<MessageEntity>? captionEntities, int? duration, String? performer, String? title, dynamic thumbnail, bool? disableNotification, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with an audio
replyContact(String phoneNumber, String firstName, {bool withQuote = false, String? lastName, String? vcard, bool? disableNotification, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with a location
replyDice({int? messageThreadId, bool withQuote = false, String emoji = Dice.emojiDice, bool? disableNotification, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with a dice message
replyDocument(dynamic document, {bool withQuote = false, dynamic thumbnail, String? caption, String? parseMode, List<MessageEntity>? captionEntities, bool? disableNotification, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with a document
replyGame(String gameShortName, {bool withQuote = false, bool? disableNotification, bool? protectContent, bool? allowSendingWithoutReply, InlineKeyboardMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with a game
replyInvoice(String title, String description, String payload, String providerToken, String currency, List<LabeledPrice> prices, {bool withQuote = false, int? maxTipAmount, List<int>? suggestedTipAmounts, String? startParameter, String? providerData, String? photoUrl, int? photoSize, int? photoWidth, int? photoHeight, bool? needName, bool? needPhoneNumber, bool? needEmail, bool? needShippingAddress, bool? sendPhoneNumberToProvider, bool? sendEmailToProvider, bool? isFlexible, bool? disableNotification, bool? protectContent, bool? allowSendingWithoutReply, InlineKeyboardMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with an invoice
replyLocation(double latitude, double longitude, {bool withQuote = false, double? horizontalAccuracy, int? livePeriod, int? heading, int? proximityAlertRadius, bool? disableNotification, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with a location
replyMediaGroup(List<InputMedia> media, {bool withQuote = false, bool? disableNotification, bool? allowSendingWithoutReply}) Future<List<Message>>
Reply to the recieved message with a media group message (multiple media files)
replyPhoto(dynamic photo, {bool withQuote = false, String? caption, String? parseMode, List<MessageEntity>? captionEntities, bool? hasSpoiler, bool? disableNotification, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with an image
replyPoll(String question, List<String> options, {bool withQuote = false, bool? isAnonymous, String? type, bool? allowsMultipleAnswers, int? correctOptionId, String? explanation, String? explanationParseMode, List<MessageEntity>? explanationEntities, int? openPeriod, int? closeDate, bool? isClosed, bool? disableNotification, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with a poll
replySticker(dynamic sticker, {bool withQuote = false, bool? disableNotification, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with an image
replyVenue(double latitude, double longitude, String title, String address, {bool withQuote = false, String? foursquareId, String? foursquareType, String? googlePlaceId, String? googlePlaceType, bool? disableNotification, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with a venue message
replyVideo(dynamic video, {bool withQuote = false, int? duration, int? width, int? height, dynamic thumbnail, String? caption, String? parseMode, List<MessageEntity>? captionEntities, bool? hasSpoiler, bool? supportsStreaming, bool? disableNotification, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with a video
replyVideoNote(dynamic videoNote, {bool withQuote = false, int? duration, int? length, dynamic thumbnail, bool? disableNotification, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with a video note
replyVoice(dynamic voice, {bool withQuote = false, String? caption, String? parseMode, List<MessageEntity>? captionEntities, bool? disableNotification, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) Future<Message>
Reply to the recieved message with a voice message
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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