Update dependencies
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user