reply method
Future<Message>
reply(
- String text, {
- bool withQuote = false,
- String? parseMode,
- List<
MessageEntity> ? entities, - bool? disableWebPagePreview,
- bool? disableNotification,
- bool? allowSendingWithoutReply,
- ReplyMarkup? replyMarkup,
Reply to the recieved message with text
A wrapper around TeleDart.sendMessage. On success, returns the sent Message.
Apart from a String to reply with, it can also take some options that control the message appearance and behavior.
Check Telegram API documentation for more information about those options.
Implementation
Future<Message> reply(
String text, {
bool withQuote = false,
String? parseMode,
List<MessageEntity>? entities,
bool? disableWebPagePreview,
bool? disableNotification,
bool? allowSendingWithoutReply,
ReplyMarkup? replyMarkup,
}) =>
_teledart.sendMessage(chat.id, text,
messageThreadId: messageThreadId,
parseMode: parseMode,
entities: entities,
disableWebPagePreview: disableWebPagePreview,
disableNotification: disableNotification,
replyToMessageId: withQuote ? messageId : null,
allowSendingWithoutReply: allowSendingWithoutReply,
replyMarkup: replyMarkup);