mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-09-01 12:05:41 +02:00
Add setCustomEmojiStickerSetThumbnail.
This commit is contained in:
parent
84e6f5fa1d
commit
0c7a7236eb
@ -296,6 +296,7 @@ bool Client::init_methods() {
|
||||
methods_.emplace("addstickertoset", &Client::process_add_sticker_to_set_query);
|
||||
methods_.emplace("setstickersetthumb", &Client::process_set_sticker_set_thumbnail_query);
|
||||
methods_.emplace("setstickersetthumbnail", &Client::process_set_sticker_set_thumbnail_query);
|
||||
methods_.emplace("setcustomemojistickersetthumbnail", &Client::process_set_custom_emoji_sticker_set_thumbnail_query);
|
||||
methods_.emplace("setstickerpositioninset", &Client::process_set_sticker_position_in_set_query);
|
||||
methods_.emplace("deletestickerfromset", &Client::process_delete_sticker_from_set_query);
|
||||
methods_.emplace("setpassportdataerrors", &Client::process_set_passport_data_errors_query);
|
||||
@ -9229,6 +9230,14 @@ td::Status Client::process_set_sticker_set_thumbnail_query(PromisedQueryPtr &que
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
td::Status Client::process_set_custom_emoji_sticker_set_thumbnail_query(PromisedQueryPtr &query) {
|
||||
auto name = query->arg("name");
|
||||
auto custom_emoji_id = td::to_integer<int64>(query->arg("custom_emoji_id"));
|
||||
send_request(make_object<td_api::setCustomEmojiStickerSetThumbnail>(name.str(), custom_emoji_id),
|
||||
td::make_unique<TdOnOkQueryCallback>(std::move(query)));
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
td::Status Client::process_set_sticker_position_in_set_query(PromisedQueryPtr &query) {
|
||||
auto file_id = trim(query->arg("sticker"));
|
||||
if (file_id.empty()) {
|
||||
|
@ -580,6 +580,7 @@ class Client final : public WebhookActor::Callback {
|
||||
Status process_create_new_sticker_set_query(PromisedQueryPtr &query);
|
||||
Status process_add_sticker_to_set_query(PromisedQueryPtr &query);
|
||||
Status process_set_sticker_set_thumbnail_query(PromisedQueryPtr &query);
|
||||
Status process_set_custom_emoji_sticker_set_thumbnail_query(PromisedQueryPtr &query);
|
||||
Status process_set_sticker_position_in_set_query(PromisedQueryPtr &query);
|
||||
Status process_delete_sticker_from_set_query(PromisedQueryPtr &query);
|
||||
Status process_set_passport_data_errors_query(PromisedQueryPtr &query);
|
||||
|
Loading…
Reference in New Issue
Block a user