sendGame method

Future<Message> sendGame(
  1. ChatID chatId,
  2. String gameShortName, {
  3. bool? disableNotification,
  4. bool? protectContent,
  5. int? replyToMessageId,
  6. bool? allowSendingWithoutReply,
  7. InlineKeyboardMarkup? replyMarkup,
})
inherited

Use this method to send a game.

On success, the sent Message is returned.

Implementation

Future<Message> sendGame(
  ChatID chatId,
  String gameShortName, {
  bool? disableNotification,
  bool? protectContent,
  int? replyToMessageId,
  bool? allowSendingWithoutReply,
  InlineKeyboardMarkup? replyMarkup,
}) {
  return _client.apiCall(_token, 'sendGame', {
    'chat_id': chatId,
    'game_short_name': gameShortName,
    'disable_notification': disableNotification,
    'protect_content': protectContent,
    'reply_to_message_id': replyToMessageId,
    'allow_sending_without_reply': allowSendingWithoutReply,
    'reply_markup': replyMarkup,
  });
}