Add emoji to sendSticker.
This commit is contained in:
parent
2a84b3e3a1
commit
640822c857
1 changed files with 2 additions and 1 deletions
|
|
@ -7924,7 +7924,8 @@ td::Status Client::process_send_sticker_query(PromisedQueryPtr &query) {
|
||||||
if (sticker == nullptr) {
|
if (sticker == nullptr) {
|
||||||
return td::Status::Error(400, "There is no sticker in the request");
|
return td::Status::Error(400, "There is no sticker in the request");
|
||||||
}
|
}
|
||||||
do_send_message(make_object<td_api::inputMessageSticker>(std::move(sticker), nullptr, 0, 0, td::string()),
|
auto emoji = query->arg("emoji");
|
||||||
|
do_send_message(make_object<td_api::inputMessageSticker>(std::move(sticker), nullptr, 0, 0, emoji.str()),
|
||||||
std::move(query));
|
std::move(query));
|
||||||
return td::Status::OK();
|
return td::Status::OK();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue