Constructor: inputInvoicePremiumGiftStars
Used to gift a Telegram Premium subscription to another user, paying with Telegram Stars.
Attributes:
Name | Type | Required | Description |
---|---|---|---|
user_id | Username, chat ID, Update, Message or InputUser | Optional | Who will receive the gifted subscription. |
months | int | Yes | Duration of the subscription in months, must be one of the options with currency == "XTR" returned by payments.getPremiumGiftCodeOptions. |
message | TextWithEntities | Optional | Message attached with the gift. |
Type: InputInvoice
Example:
$inputInvoicePremiumGiftStars = ['_' => 'inputInvoicePremiumGiftStars', 'user_id' => InputUser, 'months' => int, 'message' => TextWithEntities];