diff --git a/mautrix_telegram/portal.py b/mautrix_telegram/portal.py index f6e5b503..7801f5cb 100644 --- a/mautrix_telegram/portal.py +++ b/mautrix_telegram/portal.py @@ -113,6 +113,7 @@ from telethon.tl.types import ( InputPeerUser, InputStickerSetEmpty, InputUser, + MessageActionBoostApply, MessageActionChannelCreate, MessageActionChatAddUser, MessageActionChatCreate, @@ -3651,6 +3652,18 @@ class Portal(DBPortal, BasePortal): ), ), ) + elif isinstance(action, MessageActionBoostApply): + await self._send_message( + sender.intent_for(self), + TextMessageEventContent( + msgtype=MessageType.EMOTE, + body=( + "boosted the group" + if action.boosts == 1 + else f"boosted the group {action.boosts} times" + ), + ), + ) elif isinstance(action, MessageActionGameScore): # TODO handle game score pass diff --git a/optional-requirements.txt b/optional-requirements.txt index 09ccd018..2def256b 100644 --- a/optional-requirements.txt +++ b/optional-requirements.txt @@ -14,7 +14,7 @@ qrcode>=6,<8 phonenumbers>=8,<9 #/metrics -prometheus_client>=0.6,<0.20 +prometheus_client>=0.6,<0.21 #/e2be python-olm>=3,<4 @@ -22,7 +22,7 @@ pycryptodome>=3,<4 unpaddedbase64>=1,<3 #/sqlite -aiosqlite>=0.16,<0.20 +aiosqlite>=0.16,<0.21 #/proxy python-socks[asyncio] diff --git a/requirements.txt b/requirements.txt index 832c6e99..8677beac 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ commonmark>=0.8,<0.10 aiohttp>=3,<4 yarl>=1,<2 mautrix>=0.20.4,<0.21 -tulir-telethon==1.34.0a3 +tulir-telethon==1.35.0a1 asyncpg>=0.20,<0.30 mako>=1,<2 setuptools