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 SummaryConstructorsConstructorDescriptionGiftPremiumSubscription(long user_id, Integer month_count, Integer star_count, Api api) Required
- 
Method SummaryModifier and TypeMethodDescriptionOptionaltextEntities(MessageEntity[] text_entities) OptionaltextParseMode(ParseMode text_parse_mode) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequestexec
- 
Constructor Details- 
GiftPremiumSubscriptionRequired- Parameters:
- user_id- Unique identifier of the target user who will receive a Telegram Premium subscription
- month_count- Number of months the Telegram Premium subscription will be active for the user
- star_count- Number of Telegram Stars to pay for the Telegram Premium subscription
- api- api
 
 
- 
- 
Method Details- 
textOptional- Parameters:
- text- Text that will be shown along with the service message about the subscription; 0-128 characters
- Returns:
- GiftPremiumSubscription
 
- 
textParseModeOptional- Parameters:
- text_parse_mode- Mode for parsing entities in the text. Entities other than- EntityType.BOLD,- EntityType.ITALIC,- EntityType.UNDERLINE,- EntityType.STRIKETHROUGH,- EntityType.SPOILER, and- EntityType.CUSTOM_EMOJIare ignored.
- Returns:
- GiftPremiumSubscription
 
- 
textEntitiesOptional- Parameters:
- text_entities- A JSON-serialized list of special entities that appear in the gift text. It can be specified instead of- textParseMode(ParseMode). Entities other than- EntityType.BOLD,- EntityType.ITALIC,- EntityType.UNDERLINE,- EntityType.STRIKETHROUGH,- EntityType.SPOILER, and- EntityType.CUSTOM_EMOJIare ignored.
- Returns:
- GiftPremiumSubscription
 
 
-