Skip to content

Commit

Permalink
fix parse mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mput committed Feb 19, 2024
1 parent 6fb62ad commit 876818e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (opts *Opts) bal(b *gotgbot.Bot, ctx *ext.Context) error {
return nil
}

if _, err := b.SendMessage(msg.Chat.Id, fmt.Sprintf("```%s```", balance), &gotgbot.SendMessageOpts{ParseMode: "Markdown2"}); err != nil {
if _, err := b.SendMessage(msg.Chat.Id, fmt.Sprintf("```%s```", balance), &gotgbot.SendMessageOpts{ParseMode: "MarkdownV2"}); err != nil {
return fmt.Errorf("unable to send message: %w", err)
}
return nil
Expand Down

0 comments on commit 876818e

Please sign in to comment.