Update some small things

This commit is contained in:
Tulir Asokan
2022-01-09 00:06:35 +02:00
parent 63fafec1b7
commit e321bc30d0
5 changed files with 11 additions and 4 deletions
@@ -42,8 +42,8 @@ class MatrixParser(BaseMatrixParser[TelegramMessage]):
async def custom_node_to_fstring(
self, node: HTMLNode, ctx: RecursionContext
) -> TelegramMessage | None:
msg = await self.tag_aware_parse_node(node, ctx)
if node.tag == "command":
msg = await self.tag_aware_parse_node(node, ctx)
return msg.prepend("/").format(TelegramEntityType.COMMAND)
return None