Skip to content

Commit

Permalink
no need to setup telegram webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Jul 2, 2024
1 parent daab28f commit 1a9565a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bots/xinuxmgr/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ async fn main() -> Result<(), Box<dyn Error>> {

match std::env::var("WEBHOOK_URL") {
Ok(v) => {
bot.set_webhook(v.parse().unwrap()).await?;

clog("Mode", &format!("starting webhook on {}", v));
let addr = ([0, 0, 0, 0], 8445).into(); // port 8445
let listener = webhooks::axum(bot, webhooks::Options::new(addr, v.parse().unwrap()))
Expand Down

0 comments on commit 1a9565a

Please sign in to comment.