Telegram Bot API

Returns the gifts owned by a chat. Returns OwnedGifts on success.

post/getChatGifts

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/getChatGifts
  • Auth: none declared

Request body

exclude_unsavedboolean

Pass True to exclude gifts that aren't saved to the chat's profile page. Always True, unless the bot has the can_post_messages administrator right in the channel.

exclude_savedboolean

Pass True to exclude gifts that are saved to the chat's profile page. Always False, unless the bot has the can_post_messages administrator right in the channel.

exclude_unlimitedboolean

Pass True to exclude gifts that can be purchased an unlimited number of times

exclude_limited_upgradableboolean

Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to unique

exclude_limited_non_upgradableboolean

Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to unique

exclude_from_blockchainboolean

Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transferred in Telegram

exclude_uniqueboolean

Pass True to exclude unique gifts

sort_by_priceboolean

Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.

offsetstring

Offset of the first entry to return as received from the previous request; use an empty string to get the first chunk of results

limitinteger

The maximum number of gifts to be returned; 1-100. Defaults to 100.

Response

Telegram API response

oktrue required

Changes

    • info

      added the optional property /////////////// to the response with the status

    • info

      added the optional property ///////////// to the response with the status

    • info

      added the optional property ///////////// to the response with the status