From 78601ac8b48f48144df27e70ada4a6b2181860d9 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 15 Aug 2019 18:36:27 +0300 Subject: [PATCH] tg_cli: add resendMessages. GitOrigin-RevId: 3a1b3db6ae23eff915b548221441f7f730c7c185 --- td/telegram/cli.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index de43050d..de46ff2d 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -2465,6 +2465,12 @@ class CliClient final : public Actor { send_request(td_api::make_object(chat, as_chat_id(from_chat_id), as_message_ids(message_ids), false, false, op[2] == 'g', op[0] == 'c', static_cast(Random::fast(0, 1)))); + } else if (op == "resend") { + string chat_id; + string message_ids; + std::tie(chat_id, message_ids) = split(args); + + send_request(td_api::make_object(as_chat_id(chat_id), as_message_ids(message_ids))); } else if (op == "csc" || op == "CreateSecretChat") { send_request(td_api::make_object(as_secret_chat_id(args))); } else if (op == "cnsc" || op == "CreateNewSecretChat") {