mirror of
https://github.com/PaiGramTeam/telegram-bot-api.git
synced 2024-11-16 12:51:24 +00:00
Add setStickerSetTitle.
This commit is contained in:
parent
0c7a7236eb
commit
401894a53b
@ -294,6 +294,7 @@ bool Client::init_methods() {
|
||||
methods_.emplace("uploadstickerfile", &Client::process_upload_sticker_file_query);
|
||||
methods_.emplace("createnewstickerset", &Client::process_create_new_sticker_set_query);
|
||||
methods_.emplace("addstickertoset", &Client::process_add_sticker_to_set_query);
|
||||
methods_.emplace("setstickersettitle", &Client::process_set_sticker_set_title_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);
|
||||
@ -9215,6 +9216,14 @@ td::Status Client::process_add_sticker_to_set_query(PromisedQueryPtr &query) {
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
td::Status Client::process_set_sticker_set_title_query(PromisedQueryPtr &query) {
|
||||
auto name = query->arg("name");
|
||||
auto title = query->arg("title");
|
||||
send_request(make_object<td_api::setStickerSetTitle>(name.str(), title.str()),
|
||||
td::make_unique<TdOnOkQueryCallback>(std::move(query)));
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
td::Status Client::process_set_sticker_set_thumbnail_query(PromisedQueryPtr &query) {
|
||||
TRY_RESULT(user_id, get_user_id(query.get()));
|
||||
auto name = query->arg("name");
|
||||
|
@ -579,6 +579,7 @@ class Client final : public WebhookActor::Callback {
|
||||
Status process_upload_sticker_file_query(PromisedQueryPtr &query);
|
||||
Status process_create_new_sticker_set_query(PromisedQueryPtr &query);
|
||||
Status process_add_sticker_to_set_query(PromisedQueryPtr &query);
|
||||
Status process_set_sticker_set_title_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);
|
||||
|
Loading…
Reference in New Issue
Block a user