Fix minor things
This commit is contained in:
+2
-2
@@ -183,8 +183,8 @@ bridge:
|
||||
args:
|
||||
width: 256
|
||||
height: 256
|
||||
background: "020202" # only for gif
|
||||
fps: 30 # only for webm
|
||||
background: "020202" # only for gif
|
||||
fps: 30 # only for webm
|
||||
|
||||
# Whether to bridge Telegram bot messages as m.notices or m.texts.
|
||||
bot_messages_as_notices: true
|
||||
|
||||
@@ -193,7 +193,10 @@ class PortalTelegram(BasePortal, ABC):
|
||||
|
||||
await intent.set_typing(self.mxid, is_typing=False)
|
||||
|
||||
event_type = EventType.STICKER if attrs.is_sticker else EventType.ROOM_MESSAGE
|
||||
event_type = EventType.ROOM_MESSAGE
|
||||
# Riot only supports images as stickers, so send animated webm stickers as m.video
|
||||
if attrs.is_sticker and file.mime_type.startswith("image/"):
|
||||
event_type = EventType.STICKER
|
||||
content = MediaMessageEventContent(
|
||||
body=name or "unnamed file", info=info, url=file.mxc, relates_to=relates_to,
|
||||
external_url=self._get_external_url(evt),
|
||||
|
||||
Reference in New Issue
Block a user