mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
return empty str by default
This commit is contained in:
parent
db21da5f5c
commit
6a39b068f1
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ class BaseRequestHandler(ABC):
|
|||
|
||||
async def handle(self, request: web.Request) -> web.Response:
|
||||
bot = await self.resolve_bot(request)
|
||||
if not self.verify_secret(request.headers.get("X-Telegram-Bot-Api-Secret-Token")):
|
||||
if not self.verify_secret(request.headers.get("X-Telegram-Bot-Api-Secret-Token", "")):
|
||||
return web.Response(body="Unauthorized", status=401)
|
||||
if self.handle_in_background:
|
||||
return await self._handle_request_background(bot=bot, request=request)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue