Skip to content

Commit

Permalink
fix(bot): concat webhook port
Browse files Browse the repository at this point in the history
":" + port from config
  • Loading branch information
PaulYakow committed Feb 9, 2024
1 parent ee7048b commit 1ba20bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/go-telegram_bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func Start(ctx context.Context, cfg *config.Config) {
})

go func() {
err = http.ListenAndServe(cfg.WebhookPort, b.WebhookHandler())
err = http.ListenAndServe(":"+cfg.WebhookPort, b.WebhookHandler())
if err != nil {
log.Println("http error:", err)
}
Expand Down

0 comments on commit 1ba20bb

Please sign in to comment.