Link Search Menu Expand Document

Constructor: inputInvoiceStarGiftResale

Back to constructors index

Used to buy a collectible gift currently up on resale, see here for more info on the full flow.

Attributes:

NameTypeRequiredDescription
tonBoolOptionalBuy the gift using TON.
slugstringYesSlug of the gift to buy.
to_idUsername, chat ID, Update, Message or InputPeerOptionalThe receiver of the gift.

Type: InputInvoice

Example:

$inputInvoiceStarGiftResale = ['_' => 'inputInvoiceStarGiftResale', 'ton' => Bool, 'slug' => 'string', 'to_id' => InputPeer];