Fix MTProto-proxy usage with bots.

GitOrigin-RevId: ed82547b018fe34c5da6a9b3a98ecb9ed7b39049
This commit is contained in:
levlam 2019-08-23 19:38:56 +03:00
parent ba5ae7229a
commit eaca53604a

View File

@ -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);