|
|
|
@ -298,6 +298,7 @@ bool Client::init_methods() {
|
|
|
|
methods_.emplace("setstickersetthumb", &Client::process_set_sticker_set_thumbnail_query);
|
|
|
|
methods_.emplace("setstickersetthumb", &Client::process_set_sticker_set_thumbnail_query);
|
|
|
|
methods_.emplace("setstickersetthumbnail", &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("setcustomemojistickersetthumbnail", &Client::process_set_custom_emoji_sticker_set_thumbnail_query);
|
|
|
|
|
|
|
|
methods_.emplace("deletestickerset", &Client::process_delete_sticker_set_query);
|
|
|
|
methods_.emplace("setstickerpositioninset", &Client::process_set_sticker_position_in_set_query);
|
|
|
|
methods_.emplace("setstickerpositioninset", &Client::process_set_sticker_position_in_set_query);
|
|
|
|
methods_.emplace("deletestickerfromset", &Client::process_delete_sticker_from_set_query);
|
|
|
|
methods_.emplace("deletestickerfromset", &Client::process_delete_sticker_from_set_query);
|
|
|
|
methods_.emplace("setstickeremojilist", &Client::process_set_sticker_emoji_list_query);
|
|
|
|
methods_.emplace("setstickeremojilist", &Client::process_set_sticker_emoji_list_query);
|
|
|
|
@ -9277,6 +9278,13 @@ td::Status Client::process_set_custom_emoji_sticker_set_thumbnail_query(Promised
|
|
|
|
return Status::OK();
|
|
|
|
return Status::OK();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
td::Status Client::process_delete_sticker_set_query(PromisedQueryPtr &query) {
|
|
|
|
|
|
|
|
auto name = query->arg("name");
|
|
|
|
|
|
|
|
send_request(make_object<td_api::deleteStickerSet>(name.str()),
|
|
|
|
|
|
|
|
td::make_unique<TdOnOkQueryCallback>(std::move(query)));
|
|
|
|
|
|
|
|
return Status::OK();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
td::Status Client::process_set_sticker_position_in_set_query(PromisedQueryPtr &query) {
|
|
|
|
td::Status Client::process_set_sticker_position_in_set_query(PromisedQueryPtr &query) {
|
|
|
|
TRY_RESULT(input_file, get_sticker_input_file(query.get()));
|
|
|
|
TRY_RESULT(input_file, get_sticker_input_file(query.get()));
|
|
|
|
int32 position = get_integer_arg(query.get(), "position", -1);
|
|
|
|
int32 position = get_integer_arg(query.get(), "position", -1);
|
|
|
|
|