Update mautrix-python. Fixes #472
This commit is contained in:
@@ -181,6 +181,10 @@ class BasePortal(MautrixBasePortal, ABC):
|
||||
elif self.peer_type == "channel":
|
||||
return PeerChannel(channel_id=self.tgid)
|
||||
|
||||
@property
|
||||
def is_direct(self) -> bool:
|
||||
return self.peer_type == "user"
|
||||
|
||||
@property
|
||||
def has_bot(self) -> bool:
|
||||
return (bool(self.bot)
|
||||
|
||||
Reference in New Issue
Block a user