This commit is contained in:
parent
37435c9706
commit
fdc0e326ff
1 changed files with 5 additions and 0 deletions
5
main.go
5
main.go
|
@ -1,7 +1,9 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"crypto/tls"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
@ -53,6 +55,9 @@ func main() {
|
||||||
|
|
||||||
initTemplates()
|
initTemplates()
|
||||||
|
|
||||||
|
// Ignore CA errors
|
||||||
|
http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
|
||||||
|
|
||||||
api = tg.MakeAPIClient(token)
|
api = tg.MakeAPIClient(token)
|
||||||
api.SetWebhook(webhookURL)
|
api.SetWebhook(webhookURL)
|
||||||
tgapi = &tgInterface{
|
tgapi = &tgInterface{
|
||||||
|
|
Loading…
Reference in a new issue