diff --git a/internal/telegram/telegram.go b/internal/telegram/telegram.go index bbbfc64..623f147 100644 --- a/internal/telegram/telegram.go +++ b/internal/telegram/telegram.go @@ -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") }