This commit is contained in:
shoopea 2019-05-11 11:37:33 +08:00
parent 15ebd0b648
commit ef2310d26d
2 changed files with 2 additions and 2 deletions

2
bot.go
View File

@ -8,7 +8,7 @@ import (
"time"
)
func BotHandlers() {
func BotHandlers(b *tb.Bot) {
b.Handle("/hello", func(m *tb.Message) {
s, err := botHello(m)
logOnError(err, "/hello")

View File

@ -94,7 +94,7 @@ func main() {
failOnError(err, "Registering bot")
log.Println("Bot registered")
go BotHandlers()
go BotHandlers(b)
u := tb.User{
ID: int(cfg.Bot.Admin),
}