aiogram/docs/api/methods/get_user_gifts.rst
Alex Root Junior dcff0f99c7
Added full support of Telegram Bot API 9.3 (#1747)
* Added full support of Telegram Bot API 9.3

* Fixed tests that fails

* Add tests for `GetChatGifts`, `GetUserGifts`, `RepostStory`, and `SendMessageDraft` methods

* Added changelog record
2026-01-02 01:45:35 +02:00

38 lines
633 B
ReStructuredText

############
getUserGifts
############
Returns: :obj:`OwnedGifts`
.. automodule:: aiogram.methods.get_user_gifts
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: OwnedGifts = await bot.get_user_gifts(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.get_user_gifts import GetUserGifts`
- alias: :code:`from aiogram.methods import GetUserGifts`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: OwnedGifts = await bot(GetUserGifts(...))