Skip to content
Back to top
View this page

# OwnedGifts

class telegram.OwnedGifts(total_count, gifts, next_offset=None, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  Contains the list of gifts received and owned by a user or a chat.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their `total_count` and `gifts` are equal.

  Returned In

  `telegram.Bot.get_business_account_gifts()`

  Added in version 22.1.

  Parameters:

    - total_count (`int`) – The total number of gifts owned by the user or the chat.

    - gifts (Sequence[`telegram.OwnedGift`]) – The list of gifts.

    - next_offset (`str`, optional) – Offset for the next request. If empty, then there are no more results.

  total_count

    The total number of gifts owned by the user or the chat.

    Type:

      `int`

  gifts

    The list of gifts.

    Type:

      Sequence[`telegram.OwnedGift`]

  next_offset

    Optional. Offset for the next request. If empty, then there are no more results.

    Type:

      `str`

  classmethod de_json(data, bot=None)

    See `telegram.TelegramObject.de_json()`.