diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index b8e341934..7bfa8e52d 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -3004,7 +3004,7 @@ class CliClient final : public Actor { auto options = full_split(args); send_message(chat_id, td_api::make_object(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(sticker_file_ids_str, ','); } - send_message(chat_id, - td_api::make_object( - as_input_file(photo_path), nullptr, std::move(sticker_file_ids), 0, 0, as_caption(""), 0)); + send_message(chat_id, td_api::make_object( + 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;