Telebot 9.4
Library for Telegram bot API
Loading...
Searching...
No Matches
telebot-games.h
Go to the documentation of this file.
1/*
2 * telebot
3 *
4 * Copyright (c) 2015 Elmurod Talipov.
5 *
6 * Licensed under the Apache License, Version 2.0 (the License);
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19#ifndef __TELEBOT_GAMES_H__
20#define __TELEBOT_GAMES_H__
21
22#include <stdbool.h>
23#include "telebot-types.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
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,
48 const char *reply_markup, telebot_message_t *message);
49
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,
56 telebot_message_t *message);
57
62 long long int user_id, long long int chat_id, int message_id, const char *inline_message_id,
63 telebot_game_high_score_t **high_scores, int *count);
64
69
74#ifdef __cplusplus
75}
76#endif
77
78#endif /* __TELEBOT_GAMES_H__ */
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.