mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
Update feed_update call to include bot parameter (#1733)
bot parameter is required in dispatcher.feed_update method but is not present in the documentation
This commit is contained in:
parent
4caf56814e
commit
af899e6773
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ or :meth:`aiogram.dispatcher.dispatcher.Dispatcher.feed_update` methods.
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
update = Update.model_validate(await request.json(), context={"bot": bot})
|
update = Update.model_validate(await request.json(), context={"bot": bot})
|
||||||
await dispatcher.feed_update(update)
|
await dispatcher.feed_update(bot, update)
|
||||||
|
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue