Telebot 9.4
Library for Telegram bot API
Loading...
Searching...
No Matches
telebot-forums.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_FORUMS_H__
20#define __TELEBOT_FORUMS_H__
21
22#include <stdbool.h>
23#include "telebot-types.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
54 long long int chat_id, const char *name, int icon_color, const char *icon_custom_emoji_id,
56
63
75 long long int chat_id, int message_thread_id, const char *name, const char *icon_custom_emoji_id);
76
86 long long int chat_id, int message_thread_id);
87
97 long long int chat_id, int message_thread_id);
98
108 long long int chat_id, int message_thread_id);
109
119 long long int chat_id, int message_thread_id);
120
130 telebot_sticker_t **stickers, int *count);
131
141 long long int chat_id, const char *name);
142
151 long long int chat_id);
152
161 long long int chat_id);
162
171 long long int chat_id);
172
181 long long int chat_id);
182
191 long long int chat_id);
192
197#ifdef __cplusplus
198}
199#endif
200
201#endif /* __TELEBOT_FORUMS_H__ */
telebot_error_e telebot_hide_general_forum_topic(telebot_handler_t handle, long long int chat_id)
Use this method to hide the 'General' topic in a forum supergroup chat.
telebot_error_e telebot_unhide_general_forum_topic(telebot_handler_t handle, long long int chat_id)
Use this method to unhide the 'General' topic in a forum supergroup chat.
telebot_error_e telebot_reopen_forum_topic(telebot_handler_t handle, long long int chat_id, int message_thread_id)
Use this method to reopen a closed topic in a forum supergroup chat.
telebot_error_e telebot_reopen_general_forum_topic(telebot_handler_t handle, long long int chat_id)
Use this method to reopen a closed 'General' topic in a forum supergroup chat.
telebot_error_e telebot_get_forum_topic_icon_stickers(telebot_handler_t handle, telebot_sticker_t **stickers, int *count)
Use this method to get custom emoji stickers, which can be used as a forum topic icon by any user.
struct telebot_handler * telebot_handler_t
This is opaque object to represent a telebot handler.
Definition telebot-types.h:3489
telebot_error_e telebot_edit_forum_topic(telebot_handler_t handle, long long int chat_id, int message_thread_id, const char *name, const char *icon_custom_emoji_id)
Use this method to edit name and icon of a topic in a forum supergroup chat.
telebot_error_e telebot_put_forum_topic(telebot_forum_topic_t *topic)
Release forum topic obtained with telebot_create_forum_topic.
telebot_error_e telebot_unpin_all_general_forum_topic_messages(telebot_handler_t handle, long long int chat_id)
Use this method to unpin all messages in a General forum topic.
telebot_error_e telebot_unpin_all_forum_topic_messages(telebot_handler_t handle, long long int chat_id, int message_thread_id)
Use this method to unpin all messages in a forum topic.
telebot_error_e telebot_delete_forum_topic(telebot_handler_t handle, long long int chat_id, int message_thread_id)
Use this method to delete a forum topic along with all its messages in a forum supergroup chat.
telebot_error_e telebot_close_forum_topic(telebot_handler_t handle, long long int chat_id, int message_thread_id)
Use this method to close an open topic in a forum supergroup chat.
telebot_error_e
Enumerations of error code for telebot programming interface.
Definition telebot-common.h:45
telebot_error_e telebot_edit_general_forum_topic(telebot_handler_t handle, long long int chat_id, const char *name)
Use this method to edit the name of the 'General' topic in a forum supergroup chat.
telebot_error_e telebot_create_forum_topic(telebot_handler_t handle, long long int chat_id, const char *name, int icon_color, const char *icon_custom_emoji_id, telebot_forum_topic_t *topic)
Use this method to create a topic in a forum supergroup chat.
telebot_error_e telebot_close_general_forum_topic(telebot_handler_t handle, long long int chat_id)
Use this method to close an open 'General' topic in a forum supergroup chat.
This object represents a forum topic.
Definition telebot-types.h:3292
This object represents a sticker.
Definition telebot-types.h:3254
This file contains types used to create telegram bot.