diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 39765f401..f005de832 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -2307,6 +2307,16 @@ class CliClient final : public Actor { string message_id; std::tie(chat_id, message_id) = split(args); send_request(td_api::make_object(as_chat_id(chat_id), as_message_id(message_id))); + } else if (op == "gmf") { + string chat_id; + string from_message_id_str; + string to_message_id_str; + std::tie(chat_id, args) = split(args); + std::tie(from_message_id_str, to_message_id_str) = split(args); + auto to_message_id = to_integer(to_message_id_str); + for (auto message_id = to_integer(from_message_id_str); message_id <= to_message_id; message_id++) { + send_request(td_api::make_object(as_chat_id(chat_id), message_id << 20)); + } } else if (op == "gml") { string chat_id; string message_id;