logging improvements

This commit is contained in:
Watn3y 2023-03-05 05:45:36 +01:00
parent c63dbc666d
commit 6a31972ad0
8 changed files with 35 additions and 15 deletions

View file

@ -18,7 +18,7 @@ func Authenticate() (tgbotapi.UpdatesChannel, *tgbotapi.BotAPI) {
u := tgbotapi.NewUpdate(0)
u.Timeout = 60
log.Printf("Authorized on account %s", b.Self.UserName)
log.Printf("[bot]Authorized on account %s", b.Self.UserName)
return b.GetUpdatesChan(u), b
}

View file

@ -10,4 +10,5 @@ func SendMessage(message tgbotapi.MessageConfig, bot *tgbotapi.BotAPI) {
if err != nil {
log.Printf("Failed to send message: %v\n", err)
}
log.Printf("[bot] Sent Message: %s", message.Text)
}