mirror of
https://github.com/tdlib/telegram-bot-api
synced 2025-08-21 17:37:48 +00:00
Compare commits
20 Commits
2e1fb0330c
...
3b6a0b769c
Author | SHA1 | Date | |
---|---|---|---|
|
3b6a0b769c | ||
|
e1e2f29de6 | ||
|
3abe242f2d | ||
|
f5c5ec3ce6 | ||
|
ee502e15df | ||
|
9ff59948be | ||
|
b3ee23bf83 | ||
|
01c64655da | ||
|
b142642208 | ||
|
481791f4bd | ||
|
1362356cea | ||
|
48e49676a4 | ||
|
32e911a558 | ||
|
aa15de0d29 | ||
|
a4cd2ef979 | ||
|
cc40dd145e | ||
|
cb63e5d084 | ||
|
92f63cacf8 | ||
|
5a75b26787 | ||
|
b545895504 |
@ -1,6 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
|
||||
|
||||
project(TelegramBotApi VERSION 9.1 LANGUAGES CXX)
|
||||
project(TelegramBotApi VERSION 9.2 LANGUAGES CXX)
|
||||
|
||||
add_subdirectory(td EXCLUDE_FROM_ALL)
|
||||
|
||||
|
2
td
2
td
@ -1 +1 @@
|
||||
Subproject commit bb474a201baa798784d696d2d9d762a9d2807f96
|
||||
Subproject commit a9863453385e09f09a6f746f78ad39ca6530b6a3
|
File diff suppressed because it is too large
Load Diff
@ -137,6 +137,11 @@ class Client final : public WebhookActor::Callback {
|
||||
class JsonChecklist;
|
||||
class JsonChecklistTasksDone;
|
||||
class JsonChecklistTasksAdded;
|
||||
class JsonSuggestedPostApprovalFailed;
|
||||
class JsonSuggestedPostApproved;
|
||||
class JsonSuggestedPostDeclined;
|
||||
class JsonSuggestedPostPaid;
|
||||
class JsonSuggestedPostRefunded;
|
||||
class JsonEntity;
|
||||
class JsonVectorEntities;
|
||||
class JsonWebAppInfo;
|
||||
@ -144,6 +149,9 @@ class Client final : public WebhookActor::Callback {
|
||||
class JsonInlineKeyboardButton;
|
||||
class JsonInlineKeyboard;
|
||||
class JsonReplyMarkup;
|
||||
class JsonDirectMessagesTopic;
|
||||
class JsonSuggestedPostPrice;
|
||||
class JsonSuggestedPostInfo;
|
||||
class JsonMessage;
|
||||
class JsonMessages;
|
||||
class JsonInaccessibleMessage;
|
||||
@ -322,12 +330,14 @@ class Client final : public WebhookActor::Callback {
|
||||
int64 reply_to_message_id = 0;
|
||||
bool allow_sending_without_reply = false;
|
||||
object_ptr<td_api::inputTextQuote> quote;
|
||||
int32 checklist_task_id = 0;
|
||||
};
|
||||
|
||||
struct CheckedReplyParameters {
|
||||
int64 reply_in_chat_id = 0;
|
||||
int64 reply_to_message_id = 0;
|
||||
object_ptr<td_api::inputTextQuote> quote;
|
||||
int32 checklist_task_id = 0;
|
||||
};
|
||||
|
||||
struct UserInfo;
|
||||
@ -462,6 +472,12 @@ class Client final : public WebhookActor::Callback {
|
||||
|
||||
static td::Result<object_ptr<td_api::ReplyMarkup>> get_reply_markup(td::JsonValue &&value, BotUserIds &bot_user_ids);
|
||||
|
||||
static td::Result<object_ptr<td_api::SuggestedPostPrice>> get_suggested_post_price(td::JsonValue &&value);
|
||||
|
||||
static td::Result<object_ptr<td_api::inputSuggestedPostInfo>> get_input_suggested_post_info(const Query *query);
|
||||
|
||||
static td::Result<object_ptr<td_api::inputSuggestedPostInfo>> get_input_suggested_post_info(td::JsonValue &&value);
|
||||
|
||||
static td::Result<object_ptr<td_api::labeledPricePart>> get_labeled_price_part(td::JsonValue &value);
|
||||
|
||||
static td::Result<td::vector<object_ptr<td_api::labeledPricePart>>> get_labeled_price_parts(td::JsonValue &value);
|
||||
@ -630,9 +646,9 @@ class Client final : public WebhookActor::Callback {
|
||||
|
||||
td::Result<object_ptr<td_api::inputMessageInvoice>> get_input_message_invoice(const Query *query) const;
|
||||
|
||||
static object_ptr<td_api::messageSendOptions> get_message_send_options(bool disable_notification,
|
||||
bool protect_content,
|
||||
bool allow_paid_broadcast, int64 effect_id);
|
||||
static object_ptr<td_api::messageSendOptions> get_message_send_options(
|
||||
bool disable_notification, bool protect_content, bool allow_paid_broadcast, int64 effect_id,
|
||||
int64 direct_messages_topic_id, object_ptr<td_api::inputSuggestedPostInfo> &&input_suggested_post_info);
|
||||
|
||||
static td::Result<td::vector<object_ptr<td_api::formattedText>>> get_poll_options(const Query *query);
|
||||
|
||||
@ -797,6 +813,8 @@ class Client final : public WebhookActor::Callback {
|
||||
td::Status process_pin_chat_message_query(PromisedQueryPtr &query);
|
||||
td::Status process_unpin_chat_message_query(PromisedQueryPtr &query);
|
||||
td::Status process_unpin_all_chat_messages_query(PromisedQueryPtr &query);
|
||||
td::Status process_approve_suggested_post_query(PromisedQueryPtr &query);
|
||||
td::Status process_decline_suggested_post_query(PromisedQueryPtr &query);
|
||||
td::Status process_set_chat_sticker_set_query(PromisedQueryPtr &query);
|
||||
td::Status process_delete_chat_sticker_set_query(PromisedQueryPtr &query);
|
||||
td::Status process_get_forum_topic_icon_stickers_query(PromisedQueryPtr &query);
|
||||
@ -1059,6 +1077,7 @@ class Client final : public WebhookActor::Callback {
|
||||
int64 media_album_id = 0;
|
||||
int64 via_bot_user_id = 0;
|
||||
object_ptr<td_api::MessageContent> content;
|
||||
object_ptr<td_api::suggestedPostInfo> suggested_post_info;
|
||||
object_ptr<td_api::ReplyMarkup> reply_markup;
|
||||
td::string business_connection_id;
|
||||
int64 sender_business_bot_user_id = 0;
|
||||
@ -1068,6 +1087,7 @@ class Client final : public WebhookActor::Callback {
|
||||
bool is_automatic_forward = false;
|
||||
bool is_from_offline = false;
|
||||
bool is_scheduled = false;
|
||||
bool is_paid_post = false;
|
||||
mutable bool is_content_changed = false;
|
||||
};
|
||||
|
||||
@ -1101,6 +1121,12 @@ class Client final : public WebhookActor::Callback {
|
||||
|
||||
static td::CSlice get_callback_data(const object_ptr<td_api::InlineKeyboardButtonType> &type);
|
||||
|
||||
static bool are_equal_suggested_post_prices(const td_api::SuggestedPostPrice *lhs,
|
||||
const td_api::SuggestedPostPrice *rhs);
|
||||
|
||||
static void set_message_suggested_post_info(MessageInfo *message_info,
|
||||
object_ptr<td_api::suggestedPostInfo> &&suggested_post_info);
|
||||
|
||||
static bool are_equal_inline_keyboard_buttons(const td_api::inlineKeyboardButton *lhs,
|
||||
const td_api::inlineKeyboardButton *rhs);
|
||||
|
||||
@ -1173,6 +1199,9 @@ class Client final : public WebhookActor::Callback {
|
||||
|
||||
void update_message_content(int64 chat_id, int64 message_id, object_ptr<td_api::MessageContent> &&content);
|
||||
|
||||
void on_update_message_suggested_post_info(int64 chat_id, int64 message_id,
|
||||
object_ptr<td_api::suggestedPostInfo> &&suggested_post_info);
|
||||
|
||||
void on_update_message_edited(int64 chat_id, int64 message_id, int32 edit_date,
|
||||
object_ptr<td_api::ReplyMarkup> &&reply_markup);
|
||||
|
||||
|
@ -165,7 +165,7 @@ int main(int argc, char *argv[]) {
|
||||
auto start_time = td::Time::now();
|
||||
auto shared_data = std::make_shared<SharedData>();
|
||||
auto parameters = std::make_unique<ClientParameters>();
|
||||
parameters->version_ = "9.1";
|
||||
parameters->version_ = "9.2";
|
||||
parameters->shared_data_ = shared_data;
|
||||
parameters->start_time_ = start_time;
|
||||
auto net_query_stats = td::create_net_query_stats();
|
||||
|
Loading…
x
Reference in New Issue
Block a user