19#ifndef __TELEBOT_GAMES_H__
20#define __TELEBOT_GAMES_H__
46 long long int chat_id,
int message_thread_id,
const char *game_short_name,
47 bool disable_notification,
bool protect_content,
const char *reply_parameters,
54 long long int user_id,
int score,
bool force,
bool disable_edit_message,
55 long long int chat_id,
int message_id,
const char *inline_message_id,
62 long long int user_id,
long long int chat_id,
int message_id,
const char *inline_message_id,
telebot_error_e telebot_send_game(telebot_handler_t handle, long long int chat_id, int message_thread_id, const char *game_short_name, bool disable_notification, bool protect_content, const char *reply_parameters, const char *reply_markup, telebot_message_t *message)
Use this method to send a game.
telebot_error_e telebot_put_game_high_scores(telebot_game_high_score_t *high_scores, int count)
Release game high scores obtained with telebot_get_game_high_scores.
struct telebot_handler * telebot_handler_t
This is opaque object to represent a telebot handler.
Definition telebot-types.h:3489
telebot_error_e telebot_get_game_high_scores(telebot_handler_t handle, long long int user_id, long long int chat_id, int message_id, const char *inline_message_id, telebot_game_high_score_t **high_scores, int *count)
Use this method to get data for high score tables.
telebot_error_e
Enumerations of error code for telebot programming interface.
Definition telebot-common.h:45
telebot_error_e telebot_set_game_score(telebot_handler_t handle, long long int user_id, int score, bool force, bool disable_edit_message, long long int chat_id, int message_id, const char *inline_message_id, telebot_message_t *message)
Use this method to set the score of the specified user in a game.
This object represents a game high score row.
Definition telebot-types.h:1763
This object represents a message.
Definition telebot-types.h:1777
This file contains types used to create telegram bot.