fixed setting webhooks with a certificate
Syfaro syfaro@foxpaw.in
Mon, 07 Sep 2015 12:47:31 -0500
2 files changed,
2 insertions(+),
1 deletions(-)
M
helpers.go
→
helpers.go
@@ -238,7 +238,7 @@ Clear: false,
} } -// NewWebhookWithCert creates a new webhook with a selfsigned certificate. +// NewWebhookWithCert creates a new webhook with a certificate. // // link is the url you wish to get webhooks, // file contains a string to a file, or a FileReader or FileBytes.
M
methods.go
→
methods.go
@@ -985,6 +985,7 @@ return bot.MakeRequest("setWebhook", v)
} params := make(map[string]string) + params["url"] = config.URL.String() resp, err := bot.UploadFile("setWebhook", params, "certificate", config.Certificate) if err != nil {