handletelegram: don't return errors from message converter

This commit is contained in:
Tulir Asokan
2025-12-03 16:49:29 +02:00
parent 35c161185c
commit fed5752f38
9 changed files with 182 additions and 183 deletions
+3 -1
View File
@@ -71,11 +71,13 @@ func (s Style) Format(message string) string {
case StyleCustomEmoji:
if s.EmojiInfo.Emoji != "" {
return s.EmojiInfo.Emoji
} else {
} else if s.EmojiInfo.EmojiURI != "" {
return fmt.Sprintf(
`<img data-mx-emoticon data-mau-animated-emoji src="%s" height="32" width="32" alt="%s" title="%s"/>`,
s.EmojiInfo.EmojiURI, message, message,
)
} else {
return message
}
case StyleBotCommand:
return fmt.Sprintf("<font color='#3771bb'>%s</font>", message)