Telebot 9.4
Library for Telegram bot API
Loading...
Searching...
No Matches
telebot-stickers.h
Go to the documentation of this file.
1
2/*
3 * telebot
4 *
5 * Copyright (c) 2020 Elmurod Talipov.
6 *
7 * Licensed under the Apache License, Version 2.0 (the License);
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19
20#ifndef __TELEBOT_STICKERS_H__
21#define __TELEBOT_STICKERS_H__
22
23#include <stdbool.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
45typedef struct telebot_sticker_set {
47 char *name;
48
50 char *title;
51
54
57
60
61 /* Number of stickers */
62 int count_stickers;
63
66
68
86 const char *sticker, bool is_file, bool disable_notification,
87 int reply_to_message_id, char *reply_markup);
88
100 telebot_sticker_set_t *stickers);
101
110
119
124#ifdef __cplusplus
125}
126#endif
127
128#endif /* __TELEBOT_STICKERS_H__ */
telebot_error_e telebot_send_sticker(telebot_handler_t handle, long long int chat_id, const char *sticker, bool is_file, bool disable_notification, int reply_to_message_id, char *reply_markup)
Send static .WEBP or animated .TGS stickers.
telebot_error_e telebot_put_sticker(telebot_sticker_t *sticker)
Release a sticker object.
telebot_error_e telebot_put_sticker_set(telebot_sticker_set_t *stickers)
Release sticker set obtained with telebot_get_sticker_set()
telebot_error_e telebot_get_sticker_set(telebot_handler_t handle, const char *name, telebot_sticker_set_t *stickers)
Get a sticker set.
struct telebot_handler * telebot_handler_t
This is opaque object to represent a telebot handler.
Definition telebot-types.h:3489
telebot_error_e
Enumerations of error code for telebot programming interface.
Definition telebot-common.h:45
struct telebot_sticker_set telebot_sticker_set_t
This object represents a sticker set.
This object represents one size of a photo or a file / sticker thumbnail.
Definition telebot-types.h:2165
This object represents a sticker set.
Definition telebot-stickers.h:45
telebot_sticker_t * stickers
Definition telebot-stickers.h:59
char * name
Definition telebot-stickers.h:47
bool contains_masks
Definition telebot-stickers.h:56
char * title
Definition telebot-stickers.h:50
struct telebot_photo * thumb
Definition telebot-stickers.h:65
bool is_animated
Definition telebot-stickers.h:53
This object represents a sticker.
Definition telebot-types.h:3254