Constructor: inputInvoiceStarGift
Used to buy a Telegram Star Gift, see here » for more info.
Attributes:
Name | Type | Required | Description |
---|---|---|---|
hide_name | Bool | Optional | If set, your name will be hidden if the destination user decides to display the gift on their profile (they will still see that you sent the gift) |
include_upgrade | Bool | Optional | |
peer | Username, chat ID, Update, Message or InputPeer | Optional | |
gift_id | long | Yes | Identifier of the gift, from starGift.id |
message | TextWithEntities | Optional | Optional message, attached with the gift. The maximum length for this field is specified in the stargifts_message_length_max client configuration value ». |
Type: InputInvoice
Example:
$inputInvoiceStarGift = ['_' => 'inputInvoiceStarGift', 'hide_name' => Bool, 'include_upgrade' => Bool, 'peer' => InputPeer, 'gift_id' => long, 'message' => TextWithEntities];