gift_premium_with_stars


Description:

public async Ok gift_premium_with_stars (int64 user_id, int64 star_count, int32 month_count, FormattedText text) throws TDLibError

Allows to buy a Telegram Premium subscription for another user with payment in Telegram Stars; for bots only

Parameters:

user_id

Identifier of the user which will receive Telegram Premium

star_count

The number of Telegram Stars to pay for subscription

month_count

Number of months the Telegram Premium subscription will be active for the user

text

Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed