Don't use online mode for bots having more than one session.

This commit is contained in:
levlam 2021-04-08 15:51:29 +03:00
parent af1b774ffb
commit 4abb995b05

View File

@ -3187,6 +3187,10 @@ bool Td::is_online() const {
} }
void Td::set_is_bot_online(bool is_bot_online) { void Td::set_is_bot_online(bool is_bot_online) {
if (G()->shared_config().get_option_integer("session_count") > 1) {
is_bot_online = false;
}
if (is_bot_online == is_bot_online_) { if (is_bot_online == is_bot_online_) {
return; return;
} }