tg_cli: add resendMessages.
GitOrigin-RevId: 3a1b3db6ae23eff915b548221441f7f730c7c185
This commit is contained in:
parent
9007f106b9
commit
78601ac8b4
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user