Fix Telegram location message handling

This commit is contained in:
Tulir Asokan
2019-11-12 18:17:49 +02:00
parent ed90c2667a
commit a5aa73dea6
+1 -1
View File
@@ -211,7 +211,7 @@ class PortalTelegram(BasePortal, ABC):
msgtype=MessageType.LOCATION, geo_uri=f"geo:{lat},{long}",
body=f"Location: {body}\n{url}",
relates_to=relates_to, external_url=self._get_external_url(evt))
content["format"] = Format.HTML
content["format"] = str(Format.HTML)
content["formatted_body"] = f"Location: <a href='{url}'>{body}</a>"
return intent.send_message(self.mxid, content, timestamp=evt.date)