Archived
1

Add required HTTPS prefix for Websocket

This commit is contained in:
2018-11-29 23:41:37 +04:00
parent 611d2c9c57
commit edc2235f6f

View File

@@ -55,7 +55,7 @@ func StartBot() {
if c.Config.Telegram.Webhook.Enabled {
var url http.URI
url.Parse([]byte(c.Config.Telegram.Webhook.Domain), []byte(""))
url.Parse(nil, []byte("https://"+c.Config.Telegram.Webhook.Domain))
if len(url.Host()) == 0 {
log.Fatal().Msg("Can't parse webhook URL: got empty host")
}