Skip to content

Commit

Permalink
fixed linters for fixed webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
ychebyshev committed Feb 4, 2024
1 parent e04e662 commit 3b63e53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shvatka/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ def main() -> FastAPI:

async def on_startup(dp_builder: DpBuilder, webhook_config: WebhookConfig):
await dp_builder.start()
logger.info(webhook_config.web_url + webhook_config.path)
webhook_url = webhook_config.web_url + webhook_config.path
logger.info("as webhook url used %s", webhook_url)
await dp_builder.bot.set_webhook(
url=webhook_config.web_url + webhook_config.path,
url=webhook_url,
secret_token=webhook_config.secret,
allowed_updates=resolve_update_types(dp_builder.dp),
)
Expand Down

0 comments on commit 3b63e53

Please sign in to comment.