This commit is contained in:
sheldy 2023-05-29 18:42:19 +03:00
parent 98b2cf8636
commit 8a02fcef07

View file

@ -209,7 +209,7 @@ class SimpleRequestHandler(BaseRequestHandler):
bot: Bot,
handle_in_background: bool = True,
secret_token: Optional[str] = None,
**data: Any
**data: Any,
) -> None:
"""
:param dispatcher: instance of :class:`aiogram.dispatcher.dispatcher.Dispatcher`
@ -217,10 +217,7 @@ class SimpleRequestHandler(BaseRequestHandler):
waiting end of handler process
:param bot: instance of :class:`aiogram.client.bot.Bot`
"""
super().__init__(
dispatcher=dispatcher,
handle_in_background=handle_in_background,
**data)
super().__init__(dispatcher=dispatcher, handle_in_background=handle_in_background, **data)
self.bot = bot
self.secret_token = secret_token