Skip to content

Commit

Permalink
logging errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bogo8liuk committed Nov 7, 2023
1 parent 271d4b4 commit c296c89
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion utils/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package utils

import (
"encoding/json"
"log"
"os"
"regexp"
"strings"
Expand All @@ -14,7 +15,11 @@ import (
func SendHTML(bot *tgbotapi.BotAPI, msg tgbotapi.MessageConfig) {
msg.ParseMode = tgbotapi.ModeHTML
msg.DisableWebPagePreview = true
bot.Send(msg)

_, err := bot.Send(msg)
if err != nil {
log.Println(err.Error())
}
}

/* convert a string into kebab case
Expand Down

0 comments on commit c296c89

Please sign in to comment.