From eaca53604a55db78b40117accb3976414e697e64 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 23 Aug 2019 19:38:56 +0300 Subject: [PATCH] Fix MTProto-proxy usage with bots. GitOrigin-RevId: ed82547b018fe34c5da6a9b3a98ecb9ed7b39049 --- td/telegram/net/ConnectionCreator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/td/telegram/net/ConnectionCreator.cpp b/td/telegram/net/ConnectionCreator.cpp index b07af293e..caf79976b 100644 --- a/td/telegram/net/ConnectionCreator.cpp +++ b/td/telegram/net/ConnectionCreator.cpp @@ -1286,6 +1286,7 @@ void ConnectionCreator::on_result(NetQueryPtr query) { } if (res.error().message() == "BOT_METHOD_INVALID") { get_proxy_info_timestamp_ = Timestamp::in(30 * 86400); + return; } else { LOG(ERROR) << "Receive error for getProxyData: " << res.error(); return schedule_get_proxy_info(60);