Skip to content

Commit

Permalink
Change messages markup
Browse files Browse the repository at this point in the history
  • Loading branch information
mput committed Jul 24, 2024
1 parent 2583f54 commit e70416c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ func (bot *Bot) comment(ctx *ext.Context) (string, *gotgbot.SendMessageOpts, err
return fmt.Sprintf("Error: %v", err), nil, nil
}

return fmt.Sprintf("```\n%s\n```", comment), &gotgbot.SendMessageOpts{ParseMode: "MarkdownV2"}, nil
return fmt.Sprintf("```\n%s\n```", comment), &gotgbot.SendMessageOpts{
ParseMode: "MarkdownV2",
DisableNotification: true,
}, nil
}

//go:embed templates/propose_transaction.html
Expand Down Expand Up @@ -214,7 +217,7 @@ func (bot *Bot) proposeTransaction(ctx *ext.Context) (string, *gotgbot.SendMessa

return buf.String(), &gotgbot.SendMessageOpts{
ParseMode: "HTML",
ReplyParameters: &gotgbot.ReplyParameters{MessageId: msg.MessageId},
// ReplyParameters: &gotgbot.ReplyParameters{MessageId: msg.MessageId},
DisableNotification: true,
ReplyMarkup: gotgbot.InlineKeyboardMarkup{
InlineKeyboard: inlineKeyboard,
Expand All @@ -239,6 +242,7 @@ func (bot *Bot) showAvailableReports(_ *ext.Context) (string, *gotgbot.SendMessa

opts := &gotgbot.SendMessageOpts{
ParseMode: "MarkdownV2",
DisableNotification: true,
ReplyMarkup: gotgbot.InlineKeyboardMarkup{
InlineKeyboard: inlineKeyboard,
},
Expand Down

0 comments on commit e70416c

Please sign in to comment.