reply method

Future<Message> reply(
  1. String text, {
  2. bool withQuote = false,
  3. String? parseMode,
  4. List<MessageEntity>? entities,
  5. bool? disableWebPagePreview,
  6. bool? disableNotification,
  7. bool? allowSendingWithoutReply,
  8. 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);