tg_cli: support custom message ID separators in deleteMessages.
GitOrigin-RevId: f070685d2fee167e3679d57e84d70fff1f682f72
This commit is contained in:
parent
8c43f751cd
commit
c7a9e5980c
@ -2717,15 +2717,13 @@ class CliClient final : public Actor {
|
|||||||
} else if (op == "delf" || op == "DeleteFile") {
|
} else if (op == "delf" || op == "DeleteFile") {
|
||||||
string file_id = args;
|
string file_id = args;
|
||||||
send_request(td_api::make_object<td_api::deleteFile>(as_file_id(file_id)));
|
send_request(td_api::make_object<td_api::deleteFile>(as_file_id(file_id)));
|
||||||
} else if (op == "dm") {
|
} else if (op == "dm" || op == "dmr") {
|
||||||
string chat_id;
|
string chat_id;
|
||||||
string message_ids;
|
string message_ids;
|
||||||
string revoke;
|
std::tie(chat_id, message_ids) = split(args);
|
||||||
std::tie(chat_id, args) = split(args);
|
|
||||||
std::tie(message_ids, revoke) = split(args);
|
|
||||||
|
|
||||||
send_request(td_api::make_object<td_api::deleteMessages>(as_chat_id(chat_id), as_message_ids(message_ids),
|
send_request(
|
||||||
as_bool(revoke)));
|
td_api::make_object<td_api::deleteMessages>(as_chat_id(chat_id), as_message_ids(message_ids), op == "dmr"));
|
||||||
} else if (op == "fm" || op == "cm") {
|
} else if (op == "fm" || op == "cm") {
|
||||||
string chat_id;
|
string chat_id;
|
||||||
string from_chat_id;
|
string from_chat_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user