From 442708dd05de13410f88e0a35a1833c9448ffab3 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 5 Mar 2019 12:33:54 +0800 Subject: [PATCH] fix #72 null point for bot (#73) Signed-off-by: Bo-Yi Wu --- plugin.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugin.go b/plugin.go index 23300d6..e38b84a 100644 --- a/plugin.go +++ b/plugin.go @@ -235,11 +235,6 @@ func (p Plugin) Exec() error { bot, err := tgbotapi.NewBotAPI(p.Config.Token) - // enable bot debug mode - if p.Config.Debug { - bot.Debug = true - } - if err != nil { return err }