Class GiftPremiumSubscription
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<GiftPremiumSubscription, Boolean>
io.github.natanimn.telebof.requests.service.GiftPremiumSubscription
GiftPremiumSubscription class. Returns True on success.
- Since:
- 19 August 2025
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGiftPremiumSubscription(long user_id, Integer month_count, Integer star_count, Api api) Required -
Method Summary
Modifier and TypeMethodDescriptionOptionaltextEntities(MessageEntity[] text_entities) OptionaltextParseMode(ParseMode text_parse_mode) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
GiftPremiumSubscription
Required- Parameters:
user_id- Unique identifier of the target user who will receive a Telegram Premium subscriptionmonth_count- Number of months the Telegram Premium subscription will be active for the userstar_count- Number of Telegram Stars to pay for the Telegram Premium subscriptionapi- api
-
-
Method Details
-
text
Optional- Parameters:
text- Text that will be shown along with the service message about the subscription; 0-128 characters- Returns:
GiftPremiumSubscription
-
textParseMode
Optional- Parameters:
text_parse_mode- Mode for parsing entities in the text. Entities other thanEntityType.BOLD,EntityType.ITALIC,EntityType.UNDERLINE,EntityType.STRIKETHROUGH,EntityType.SPOILER, andEntityType.CUSTOM_EMOJIare ignored.- Returns:
GiftPremiumSubscription
-
textEntities
Optional- Parameters:
text_entities- A JSON-serialized list of special entities that appear in the gift text. It can be specified instead oftextParseMode(ParseMode). Entities other thanEntityType.BOLD,EntityType.ITALIC,EntityType.UNDERLINE,EntityType.STRIKETHROUGH,EntityType.SPOILER, andEntityType.CUSTOM_EMOJIare ignored.- Returns:
GiftPremiumSubscription
-