From 8bb1747ef66084eadb29f83d552f3445dc254843 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 5 Mar 2019 06:45:14 +0300 Subject: [PATCH] tg_cli: fix gmf. GitOrigin-RevId: 3b6fe4514fc06bf65ce1200ab9f2f8603c65ef90 --- td/telegram/cli.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index f005de83..5312631d 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -2313,8 +2313,8 @@ class CliClient final : public Actor { 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++) { + 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") {