Support Location Message.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2016-10-14 14:27:34 +08:00
parent 1142360e53
commit 3f25341c8b
4 changed files with 92 additions and 2 deletions
+6
View File
@@ -57,6 +57,11 @@ func main() {
Usage: "send voice message",
EnvVar: "PLUGIN_VOICE",
},
cli.StringSliceFlag{
Name: "location",
Usage: "send location message",
EnvVar: "PLUGIN_LOCATION",
},
cli.BoolFlag{
Name: "debug",
Usage: "enable debug message",
@@ -151,6 +156,7 @@ func run(c *cli.Context) error {
Sticker: c.StringSlice("sticker"),
Audio: c.StringSlice("audio"),
Voice: c.StringSlice("voice"),
Location: c.StringSlice("location"),
Format: c.String("format"),
},
}