diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 4ead621..566bfac 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -253,6 +253,7 @@ bool Client::init_methods() { methods_.emplace("unpinallchatmessages", &Client::process_unpin_all_chat_messages_query); methods_.emplace("setchatstickerset", &Client::process_set_chat_sticker_set_query); methods_.emplace("deletechatstickerset", &Client::process_delete_chat_sticker_set_query); + methods_.emplace("getforumtopiciconstickers", &Client::process_get_forum_topic_icon_stickers_query); methods_.emplace("getchatmember", &Client::process_get_chat_member_query); methods_.emplace("getchatadministrators", &Client::process_get_chat_administrators_query); methods_.emplace("getchatmembercount", &Client::process_get_chat_member_count_query); @@ -8105,6 +8106,12 @@ td::Status Client::process_delete_chat_sticker_set_query(PromisedQueryPtr &query return Status::OK(); } +td::Status Client::process_get_forum_topic_icon_stickers_query(PromisedQueryPtr &query) { + send_request(make_object(), + td::make_unique(this, std::move(query))); + return Status::OK(); +} + td::Status Client::process_get_chat_member_query(PromisedQueryPtr &query) { auto chat_id = query->arg("chat_id"); TRY_RESULT(user_id, get_user_id(query.get())); diff --git a/telegram-bot-api/Client.h b/telegram-bot-api/Client.h index e8649c0..3b8e2ef 100644 --- a/telegram-bot-api/Client.h +++ b/telegram-bot-api/Client.h @@ -536,6 +536,7 @@ class Client final : public WebhookActor::Callback { Status process_unpin_all_chat_messages_query(PromisedQueryPtr &query); Status process_set_chat_sticker_set_query(PromisedQueryPtr &query); Status process_delete_chat_sticker_set_query(PromisedQueryPtr &query); + Status process_get_forum_topic_icon_stickers_query(PromisedQueryPtr &query); Status process_get_chat_member_query(PromisedQueryPtr &query); Status process_get_chat_administrators_query(PromisedQueryPtr &query); Status process_get_chat_member_count_query(PromisedQueryPtr &query);