diff --git a/main.go b/main.go index a79cb4e..5843000 100644 --- a/main.go +++ b/main.go @@ -38,7 +38,7 @@ func main() { EnvVar: "PLUGIN_PHOTO", }, cli.StringSliceFlag{ - Name: "photo", + Name: "document", Usage: "send document message", EnvVar: "PLUGIN_DOCUMENT", }, diff --git a/plugin.go b/plugin.go index a4ad100..baf80f8 100644 --- a/plugin.go +++ b/plugin.go @@ -111,7 +111,7 @@ func (p Plugin) Exec() error { bot, err := tgbotapi.NewBotAPI(p.Config.Token) if err != nil { - log.Println(err.Error()) + log.Println("Initialize New Bot Error:", err.Error()) return err }