Skip to content

Commit

Permalink
Use italics for event messages on Telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesyringa committed Dec 29, 2021
1 parent 5dbc9e3 commit 0b6f8df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bridge/telegram/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ func (b *Btelegram) Send(msg config.Message) (string, error) {
return b.cacheAvatar(&msg)
}

if msg.Event == config.EventUserAction {
msg.Text = "_" + msg.Text + "_"
}

if b.GetString("MessageFormat") == HTMLFormat {
msg.Text = makeHTML(msg.Text)
}
Expand Down

0 comments on commit 0b6f8df

Please sign in to comment.