mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
* 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
38 lines
633 B
ReStructuredText
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(...))
|