Add getForumTopicIconStickers method.

This commit is contained in:
levlam 2022-10-31 18:27:17 +03:00
parent 39392705a7
commit 83bcb31994
2 changed files with 8 additions and 0 deletions

View File

@ -253,6 +253,7 @@ bool Client::init_methods() {
methods_.emplace("unpinallchatmessages", &Client::process_unpin_all_chat_messages_query); methods_.emplace("unpinallchatmessages", &Client::process_unpin_all_chat_messages_query);
methods_.emplace("setchatstickerset", &Client::process_set_chat_sticker_set_query); methods_.emplace("setchatstickerset", &Client::process_set_chat_sticker_set_query);
methods_.emplace("deletechatstickerset", &Client::process_delete_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("getchatmember", &Client::process_get_chat_member_query);
methods_.emplace("getchatadministrators", &Client::process_get_chat_administrators_query); methods_.emplace("getchatadministrators", &Client::process_get_chat_administrators_query);
methods_.emplace("getchatmembercount", &Client::process_get_chat_member_count_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(); return Status::OK();
} }
td::Status Client::process_get_forum_topic_icon_stickers_query(PromisedQueryPtr &query) {
send_request(make_object<td_api::getForumTopicDefaultIcons>(),
td::make_unique<TdOnGetStickersCallback>(this, std::move(query)));
return Status::OK();
}
td::Status Client::process_get_chat_member_query(PromisedQueryPtr &query) { td::Status Client::process_get_chat_member_query(PromisedQueryPtr &query) {
auto chat_id = query->arg("chat_id"); auto chat_id = query->arg("chat_id");
TRY_RESULT(user_id, get_user_id(query.get())); TRY_RESULT(user_id, get_user_id(query.get()));

View File

@ -536,6 +536,7 @@ class Client final : public WebhookActor::Callback {
Status process_unpin_all_chat_messages_query(PromisedQueryPtr &query); Status process_unpin_all_chat_messages_query(PromisedQueryPtr &query);
Status process_set_chat_sticker_set_query(PromisedQueryPtr &query); Status process_set_chat_sticker_set_query(PromisedQueryPtr &query);
Status process_delete_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_member_query(PromisedQueryPtr &query);
Status process_get_chat_administrators_query(PromisedQueryPtr &query); Status process_get_chat_administrators_query(PromisedQueryPtr &query);
Status process_get_chat_member_count_query(PromisedQueryPtr &query); Status process_get_chat_member_count_query(PromisedQueryPtr &query);