Telegram Bot API

Converts a given regular gift to Telegram Stars. Requires the can_convert_gifts_to_stars business bot right. Returns True on success.

post/convertGiftToStars

Request

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

Request body

business_connection_idstring required

Unique identifier of the business connection

owned_gift_idstring required

Unique identifier of the regular gift that should be converted to Telegram Stars

Response

Telegram API response

oktrue required
resulttrue required

Changes

No recorded changes to this operation across all 3 revisions of this API.