mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix for port
This commit is contained in:
parent
647521a65d
commit
f23369aeb5
1 changed files with 2 additions and 2 deletions
|
|
@ -50,8 +50,8 @@ class CustomExecutor(Executor):
|
|||
inherit from Executor class and overwrite run_app
|
||||
method so you can easily add own routes
|
||||
'''
|
||||
def run_app(self, **kwargs):
|
||||
web.run_app(self._web_app, **kwargs, port = 9999)
|
||||
def run_app(self, port: int = 8080, **kwargs,):
|
||||
web.run_app(self._web_app, **kwargs, port = port)
|
||||
|
||||
def add_subapp(self, subapp: web.Application, subapp_prefix: str):
|
||||
self._web_app.add_subapp(subapp_prefix, subapp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue