Fix and refactor Matrix->Telegram formatter

This commit is contained in:
Tulir Asokan
2018-03-10 09:39:53 +02:00
parent 77c57eb64b
commit 2d63c5b3ce
3 changed files with 68 additions and 51 deletions
+1 -1
View File
@@ -594,7 +594,7 @@ class Portal:
entity.user_id = await client.get_input_entity(entity.user_id.user_id)
else:
message, entities = formatter.matrix_text_to_telegram(message["body"])
return await client.send_message(self.peer, message, reply_to=reply_to)
return await client.send_message(self.peer, message, entities=entities, reply_to=reply_to)
async def _handle_matrix_file(self, client, message, reply_to):
file = await self.main_intent.download_file(message["url"])