getReplyToMessage method

Message? getReplyToMessage()

Gets the message being replied to, if any.

Example:

final replyTo = ctx.getReplyToMessage();
if (replyTo != null) {
  await ctx.reply('You replied to: ${replyTo.text}');
}

Implementation

Message? getReplyToMessage() {
  return msg?.replyToMessage;
}