diff --git a/main.go b/main.go index 9fe91b7..ba7ad1f 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,9 @@ package main import ( + "crypto/tls" "fmt" + "net/http" "os" "strings" @@ -53,6 +55,9 @@ func main() { initTemplates() + // Ignore CA errors + http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true} + api = tg.MakeAPIClient(token) api.SetWebhook(webhookURL) tgapi = &tgInterface{