1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

fixes: debug removed from uvicorn #1767

This commit is contained in:
batmanscode
2022-10-30 17:21:53 +00:00
committed by GitHub
parent 20376168c1
commit 92ecfdec48
3 changed files with 2 additions and 18 deletions

View File

@ -29,7 +29,6 @@ class AsyncWebhookListener:
port: Optional[int]=443,
ssl_context: Optional[tuple]=None,
url_path: Optional[str]=None,
debug: Optional[bool]=False
) -> None:
"""
Aynchronous implementation of webhook listener
@ -55,9 +54,6 @@ class AsyncWebhookListener:
:param url_path: Webhook url path
:type url_path: str
:param debug: Debug mode
:type debug: bool
:raises ImportError: If FastAPI or uvicorn is not installed.
:raises ImportError: If Starlette version is too old.
@ -72,7 +68,6 @@ class AsyncWebhookListener:
self._host = host
self._ssl_context = ssl_context
self._url_path = url_path
self._debug = debug
self._prepare_endpoint_urls()
@ -119,7 +114,6 @@ class AsyncWebhookListener:
config = Config(app=self.app,
host=self._host,
port=self._port,
debug=self._debug,
ssl_certfile=self._ssl_context[0],
ssl_keyfile=self._ssl_context[1]
)

View File

@ -25,7 +25,6 @@ class SyncWebhookListener:
port: Optional[int]=443,
ssl_context: Optional[tuple]=None,
url_path: Optional[str]=None,
debug: Optional[bool]=False
) -> None:
"""
Synchronous implementation of webhook listener
@ -51,9 +50,6 @@ class SyncWebhookListener:
:param url_path: Webhook url path
:type url_path: str
:param debug: Debug mode
:type debug: bool
:raises ImportError: If FastAPI or uvicorn is not installed.
:raises ImportError: If Starlette version is too old.
@ -68,7 +64,6 @@ class SyncWebhookListener:
self._host = host
self._ssl_context = ssl_context
self._url_path = url_path
self._debug = debug
self._prepare_endpoint_urls()
@ -115,7 +110,6 @@ class SyncWebhookListener:
uvicorn.run(app=self.app,
host=self._host,
port=self._port,
debug=self._debug,
ssl_certfile=self._ssl_context[0],
ssl_keyfile=self._ssl_context[1]
)