aiogram/docs/api/methods/get_updates.rst
Alex Root Junior 405bbcc36f
Added full support of Bot API 7.11 (#1601)
* Added full support of Bot API 7.11

* Small fixes

* Added changelog
2024-11-02 16:13:45 +02:00

38 lines
618 B
ReStructuredText

##########
getUpdates
##########
Returns: :obj:`list[Update]`
.. automodule:: aiogram.methods.get_updates
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: list[Update] = await bot.get_updates(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.get_updates import GetUpdates`
- alias: :code:`from aiogram.methods import GetUpdates`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: list[Update] = await bot(GetUpdates(...))