Telebot 9.4
Library for Telegram bot API
Loading...
Searching...
No Matches
telebot-inline.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_INLINE_H__
20#define __TELEBOT_INLINE_H__
21
22#include <stdbool.h>
23#include "telebot-types.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
46 const char *inline_query_id, const char *results, int cache_time,
47 bool is_personal, const char *next_offset, const char *button);
48
53 long long int user_id, const char *result, bool allow_user_chats,
54 bool allow_bot_chats, bool allow_group_chats, bool allow_channel_chats,
55 telebot_prepared_inline_message_t *prepared_message);
56
61
66 const char *web_app_query_id, const char *result, char **inline_message_id);
67
72#ifdef __cplusplus
73}
74#endif
75
76#endif /* __TELEBOT_INLINE_H__ */
telebot_error_e telebot_save_prepared_inline_message(telebot_handler_t handle, long long int user_id, const char *result, bool allow_user_chats, bool allow_bot_chats, bool allow_group_chats, bool allow_channel_chats, telebot_prepared_inline_message_t *prepared_message)
Use this method to save a prepared inline message.
telebot_error_e telebot_answer_web_app_query(telebot_handler_t handle, const char *web_app_query_id, const char *result, char **inline_message_id)
Use this method to send answers to an inline query to a user from a Web App.
struct telebot_handler * telebot_handler_t
This is opaque object to represent a telebot handler.
Definition telebot-types.h:3489
telebot_error_e telebot_answer_inline_query(telebot_handler_t handle, const char *inline_query_id, const char *results, int cache_time, bool is_personal, const char *next_offset, const char *button)
Use this method to send answers to an inline query.
telebot_error_e
Enumerations of error code for telebot programming interface.
Definition telebot-common.h:45
telebot_error_e telebot_put_prepared_inline_message(telebot_prepared_inline_message_t *prepared_message)
Release prepared inline message.
This object represents a prepared inline message.
Definition telebot-types.h:3309
This file contains types used to create telegram bot.