Fix MTProto-proxy usage with bots.
GitOrigin-RevId: ed82547b018fe34c5da6a9b3a98ecb9ed7b39049
This commit is contained in:
parent
ba5ae7229a
commit
eaca53604a
@ -1286,6 +1286,7 @@ void ConnectionCreator::on_result(NetQueryPtr query) {
|
|||||||
}
|
}
|
||||||
if (res.error().message() == "BOT_METHOD_INVALID") {
|
if (res.error().message() == "BOT_METHOD_INVALID") {
|
||||||
get_proxy_info_timestamp_ = Timestamp::in(30 * 86400);
|
get_proxy_info_timestamp_ = Timestamp::in(30 * 86400);
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
LOG(ERROR) << "Receive error for getProxyData: " << res.error();
|
LOG(ERROR) << "Receive error for getProxyData: " << res.error();
|
||||||
return schedule_get_proxy_info(60);
|
return schedule_get_proxy_info(60);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user