sendGame method
Future<Message>
sendGame(
- ChatID chatId,
- String gameShortName, {
- bool? disableNotification,
- bool? protectContent,
- int? replyToMessageId,
- bool? allowSendingWithoutReply,
- 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,
});
}