Fix files over relaybot not having message format

This commit is contained in:
Tulir Asokan
2019-11-06 22:49:26 +02:00
parent 0a5f4e6551
commit 9e831689e9
2 changed files with 12 additions and 13 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ async def caption(evt: CommandEvent) -> EventID:
if evt.content.format == Format.HTML:
evt.content.formatted_body = evt.content.formatted_body.replace(prefix, "", 1)
evt.content.body = evt.content.body.replace(prefix, "", 1)
evt.sender.command_status = {"caption": evt.content}
evt.sender.command_status = {"caption": evt.content, "action": "Caption"}
return await evt.reply("Your next image or file will be sent with that caption. "
"Use `$cmdprefix+sp cancel` to cancel the caption.")