replyGame method
Reply to the recieved message with a game
A wrapper around TeleDart.sendGame. On success, returns the sent Message.
Apart from a gameShortName
, 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> replyGame(
String gameShortName, {
bool withQuote = false,
bool? disableNotification,
bool? protectContent,
bool? allowSendingWithoutReply,
InlineKeyboardMarkup? replyMarkup,
}) =>
_teledart.sendGame(chat.id, gameShortName,
messageThreadId: messageThreadId,
disableNotification: disableNotification,
protectContent: protectContent,
replyToMessageId: withQuote ? messageId : null,
allowSendingWithoutReply: allowSendingWithoutReply,
replyMarkup: replyMarkup);