tg_cli: add spcaption.

GitOrigin-RevId: 01829fb2a9cd7e9729f0d9b791321600a40e1f0c
This commit is contained in:
levlam 2019-04-08 19:53:26 +03:00
parent fb4475e83d
commit edfb005cc1

View File

@ -3004,7 +3004,7 @@ class CliClient final : public Actor {
auto options = full_split(args);
send_message(chat_id, td_api::make_object<td_api::inputMessagePoll>(question, std::move(options)));
} else if (op == "sp") {
} else if (op == "sp" || op == "spcaption") {
string chat_id;
string photo_path;
string sticker_file_ids_str;
@ -3017,9 +3017,9 @@ class CliClient final : public Actor {
sticker_file_ids = to_integers<int32>(sticker_file_ids_str, ',');
}
send_message(chat_id,
td_api::make_object<td_api::inputMessagePhoto>(
as_input_file(photo_path), nullptr, std::move(sticker_file_ids), 0, 0, as_caption(""), 0));
send_message(chat_id, td_api::make_object<td_api::inputMessagePhoto>(
as_input_file(photo_path), nullptr, std::move(sticker_file_ids), 0, 0,
as_caption(op == "spcaption" ? "cap \n\n\n\n tion " : ""), 0));
} else if (op == "spttl") {
string chat_id;
string photo_path;