send_game#

template<class Agent>
api_result<message_t, Agent&&> send_game(Agent &&agent, send_game_args_t args)#

agent is any object satisfying agent concept.

Use this method to send a game. On success, the sent Message is returned.

struct send_game_args_t#

Arguments that should be passed to send_game().

integer_t chat_id#

Unique identifier for the target chat

string_t game_short_name#

Short name of the game, serves as the unique identifier for the game. Set up your games via Botfather.

optional_t<boolean_t> disable_notification#

Sends the message silently. Users will receive a notification with no sound.

optional_t<integer_t> reply_to_message_id#

If the message is a reply, ID of the original message

optional_t<boolean_t> allow_sending_without_reply#

Pass True, if the message should be sent even if the specified replied-to message is not found

optional_t<inline_keyboard_markup_t> reply_markup#

A JSON-serialized object for an inline keyboard. If empty, one ‘Play game_title’ button will be shown. If not empty, the first button must launch the game.