Fix sending relaybot private chat message

This commit is contained in:
Tulir Asokan
2019-10-02 23:24:19 +03:00
parent 1b987be562
commit 6c312efc9a
2 changed files with 8 additions and 7 deletions
+3 -2
View File
@@ -147,8 +147,9 @@ class BasePortal(ABC):
@property
def has_bot(self) -> bool:
return (bool(self.bot) and (self.bot.is_in_chat(self.tgid)
or (self.peer_type == "user" and self.tg_receiver == self.bot.tgid)))
return (bool(self.bot)
and (self.bot.is_in_chat(self.tgid)
or (self.peer_type == "user" and self.tg_receiver == self.bot.tgid)))
@property
def main_intent(self) -> IntentAPI: