Add support for bridging or responding to private chats with relaybot

This commit is contained in:
Tulir Asokan
2019-09-29 00:47:22 +03:00
parent d5470de8fd
commit f6b64126cf
8 changed files with 56 additions and 13 deletions
+2 -1
View File
@@ -147,7 +147,8 @@ class BasePortal(ABC):
@property
def has_bot(self) -> bool:
return bool(self.bot and self.bot.is_in_chat(self.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: