mirror of
https://github.com/appleboy/drone-telegram.git
synced 2026-06-14 05:12:22 +08:00
Add feature to toggle web-page preview (#52)
This commit is contained in:
@@ -83,6 +83,11 @@ func main() {
|
||||
Usage: "send message when only match email",
|
||||
EnvVar: "PLUGIN_ONLY_MATCH_EMAIL",
|
||||
},
|
||||
cli.BoolTFlag{
|
||||
Name: "webpage.preview",
|
||||
Usage: "toggle web-page preview",
|
||||
EnvVar: "PLUGIN_WEBPAGE_PREVIEW",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "format",
|
||||
Value: "markdown",
|
||||
@@ -205,6 +210,7 @@ func run(c *cli.Context) error {
|
||||
Token: c.String("token"),
|
||||
Debug: c.Bool("debug"),
|
||||
MatchEmail: c.Bool("match.email"),
|
||||
WebPreview: c.Bool("webpage.preview"),
|
||||
To: c.StringSlice("to"),
|
||||
Message: c.StringSlice("message"),
|
||||
Photo: c.StringSlice("photo"),
|
||||
|
||||
Reference in New Issue
Block a user