diff --git a/plugin.go b/plugin.go index a36272e..23300d6 100644 --- a/plugin.go +++ b/plugin.go @@ -375,7 +375,11 @@ func (p Plugin) Send(bot *tgbotapi.BotAPI, msg tgbotapi.Chattable) error { log.Println("=====================") } - return err + if err == nil { + return nil + } + + return errors.New(strings.Replace(err.Error(), p.Config.Token, "", -1)) } // Message is plugin default message.