fix wrong name.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
dfd91c671b
commit
6cdfb8ba10
2
main.go
2
main.go
@ -38,7 +38,7 @@ func main() {
|
|||||||
EnvVar: "PLUGIN_PHOTO",
|
EnvVar: "PLUGIN_PHOTO",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "photo",
|
Name: "document",
|
||||||
Usage: "send document message",
|
Usage: "send document message",
|
||||||
EnvVar: "PLUGIN_DOCUMENT",
|
EnvVar: "PLUGIN_DOCUMENT",
|
||||||
},
|
},
|
||||||
|
@ -111,7 +111,7 @@ func (p Plugin) Exec() error {
|
|||||||
bot, err := tgbotapi.NewBotAPI(p.Config.Token)
|
bot, err := tgbotapi.NewBotAPI(p.Config.Token)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err.Error())
|
log.Println("Initialize New Bot Error:", err.Error())
|
||||||
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user