Class SendGift
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<SendGift,Boolean>
io.github.natanimn.telebof.requests.send.SendGift
SendGift class for sending gifts
- Since:
- July 25, 2025
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpayForUpgrade(Boolean payForUpgrade) OptionalOptionaltextEntities(MessageEntity[] textEntities) OptionaltextParseMode(ParseMode textParseMode) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
SendGift
-
SendGift
-
-
Method Details
-
payForUpgrade
Optional- Parameters:
payForUpgrade- Pass True to pay for the gift upgrade from the bot's balance, thereby making the upgrade free for the receiver.- Returns:
SendGift
-
text
Optional- Parameters:
text- Text that will be shown along with the gift; 0-128 characters- Returns:
SendGift
-
textParseMode
Optional- Parameters:
textParseMode- Mode for parsing entities in the text.- Returns:
SendGift
-
textEntities
Optional- Parameters:
textEntities- A list ofMessageEntity, special entities that appear in the gift text. It can be specified instead of text_parse_mode- Returns:
SendGift
-