Skip to content

Commit

Permalink
chore:update result style to markdownV2
Browse files Browse the repository at this point in the history
  • Loading branch information
bighu630 committed Dec 6, 2024
1 parent 8a31b11 commit bca2631
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handler/gemini_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func handleGroupChat(b *gotgbot.Bot, ctx *ext.Context, ai ai.AiInterface, s *tak
log.Debug().Msgf("gemini say: %s", resp)
}
_, err = ctx.EffectiveMessage.Reply(b, resp, &gotgbot.SendMessageOpts{
ParseMode: "Markdown",
ParseMode: "MarkdownV2",
})
if err != nil {
log.Error().Err(err)
Expand Down Expand Up @@ -177,7 +177,7 @@ func sendRespond(resp string, b *gotgbot.Bot, ctx *ext.Context) error {
log.Debug().Msgf("gemini say in chat: %s", resp)
for i := 0; i < 3; i++ {
_, err := ctx.EffectiveMessage.Reply(b, resp, &gotgbot.SendMessageOpts{
ParseMode: "Markdown",
ParseMode: "MarkdownV2",
})
if err != nil {
log.Error().Err(err)
Expand Down

0 comments on commit bca2631

Please sign in to comment.