Fix some bugs and update Telethon
This commit is contained in:
@@ -3161,7 +3161,13 @@ class Portal(DBPortal, BasePortal):
|
||||
)
|
||||
return
|
||||
|
||||
self.log.debug("Handling Telegram message %d@%d from %s", evt.id, tg_space, sender.tgid)
|
||||
self.log.debug(
|
||||
"Handling Telegram message %d@%d from %s (ts: %s)",
|
||||
evt.id,
|
||||
tg_space,
|
||||
sender.tgid if sender else None,
|
||||
evt.date,
|
||||
)
|
||||
self.log.trace("Message content: %s", evt)
|
||||
|
||||
if sender and not sender.displayname:
|
||||
|
||||
@@ -80,11 +80,7 @@ def get_base_power_levels(
|
||||
levels.events_default = overrides.get(
|
||||
"events_default",
|
||||
50
|
||||
if (
|
||||
portal.peer_type == "channel"
|
||||
and not entity.megagroup
|
||||
or entity.default_banned_rights.send_messages
|
||||
)
|
||||
if portal.peer_type == "channel" and not entity.megagroup or dbr.send_messages
|
||||
else 0,
|
||||
)
|
||||
for evt_type, value in overrides.get("events", {}).items():
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ aiohttp>=3,<4
|
||||
yarl>=1,<2
|
||||
mautrix>=0.16.4,<0.17
|
||||
#telethon>=1.24,<1.25
|
||||
tulir-telethon==1.25.0a8
|
||||
tulir-telethon==1.25.0a10
|
||||
asyncpg>=0.20,<0.26
|
||||
mako>=1,<2
|
||||
setuptools
|
||||
|
||||
Reference in New Issue
Block a user