Skip to content

Commit

Permalink
Example fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Quirel committed Feb 6, 2021
1 parent f1a76b3 commit ace470f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import tglog "github.com/quirel/telegram-logger"

func main() {
token := "YOUR_TELEGRAM_BOT_TOKEN"
var chatId int64 = 123123
chatIds := []int64{123123, 456456}

// creates logger with level 'debug'
logger, _ := tglog.NewLogger("debug", token, []int64{chatId})
logger, _ := tglog.NewLogger("debug", token, chatIds)
// set name displayed in logs
logger.SetName("MyApp")

Expand Down

0 comments on commit ace470f

Please sign in to comment.