This commit is contained in:
2023-07-21 01:42:24 +02:00
parent bbbec9773a
commit f3fd08d2b8

View File

@@ -136,7 +136,7 @@ impl BotsManager {
routers.insert(token.to_string(), tx); routers.insert(token.to_string(), tx);
let host = format!("{}:{}", &config::CONFIG.webhook_base_url, self.port); let host = format!("{}:{}", &config::CONFIG.webhook_base_url, self.port);
let url = Url::parse(&format!("{host}/{token}")) let url = Url::parse(&format!("{host}/{token}/"))
.unwrap_or_else(|_| panic!("Can't parse webhook url!")); .unwrap_or_else(|_| panic!("Can't parse webhook url!"));
match bot.set_webhook(url.clone()).await { match bot.set_webhook(url.clone()).await {