logging improvements
This commit is contained in:
parent
c63dbc666d
commit
6a31972ad0
8 changed files with 35 additions and 15 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue