diff --git a/bot.go b/bot.go index 3ec2197..bf71a06 100644 --- a/bot.go +++ b/bot.go @@ -14,10 +14,10 @@ func NewBotApi(token string) (*BotApi, error) { self, err := bot.GetMe() if err != nil { - return BotApi{}, err + return &BotApi{}, err } bot.Self = self - return bot + return bot, nil }