support send photo message.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2016-10-07 14:34:31 +08:00
parent ee4c70fa29
commit fd83eb04f4
3 changed files with 42 additions and 1 deletions
+6
View File
@@ -32,6 +32,11 @@ func main() {
Usage: "send telegram message",
EnvVar: "PLUGIN_MESSAGE",
},
cli.StringSliceFlag{
Name: "photo",
Usage: "send photo message",
EnvVar: "PLUGIN_PHOTO",
},
cli.BoolFlag{
Name: "debug",
Usage: "enable debug message",
@@ -121,6 +126,7 @@ func run(c *cli.Context) error {
Debug: c.Bool("debug"),
To: c.StringSlice("to"),
Message: c.StringSlice("message"),
Photo: c.StringSlice("photo"),
Format: c.String("format"),
},
}