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
- Version:
- 1.3.0
- Author:
- Natanim
-
Field Summary
Fields inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
api, methodName, parameters -
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
add, exec, getContentType, getMethodName, getParameters, getResponseType, hasMultipart, setHasMultipart
-
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
-