tg_cli: add resendMessages.

GitOrigin-RevId: 3a1b3db6ae23eff915b548221441f7f730c7c185
This commit is contained in:
levlam 2019-08-15 18:36:27 +03:00
parent 9007f106b9
commit 78601ac8b4
1 changed files with 6 additions and 0 deletions

View File

@ -2465,6 +2465,12 @@ class CliClient final : public Actor {
send_request(td_api::make_object<td_api::forwardMessages>(chat, as_chat_id(from_chat_id),
as_message_ids(message_ids), false, false, op[2] == 'g',
op[0] == 'c', static_cast<bool>(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<td_api::resendMessages>(as_chat_id(chat_id), as_message_ids(message_ids)));
} else if (op == "csc" || op == "CreateSecretChat") {
send_request(td_api::make_object<td_api::createSecretChat>(as_secret_chat_id(args)));
} else if (op == "cnsc" || op == "CreateNewSecretChat") {