This commit is contained in:
shoopea 2020-01-17 00:00:30 +08:00
parent 497aeeb199
commit c825b9cfcb

View File

@ -98,7 +98,7 @@ func main() {
initCache(*initdb)
// Registering bot
bot, err := tb.NewBot(tb.Settings{
bot, err = tb.NewBot(tb.Settings{
Token: cfg.Telegram.Token,
URL: cfg.Telegram.URL,
Poller: &tb.LongPoller{Timeout: 10 * time.Second},