Class InputInvoiceMessageContent
java.lang.Object
io.github.natanimn.telebof.types.input.InputInvoiceMessageContent
- All Implemented Interfaces:
InputMessageContent,Serializable
Represents the content of an invoice message to be sent as the result of an inline query.
- Since:
- 3 March 2025
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInputInvoiceMessageContent(String title, String description, String payload, String currency, LabeledPrice[] prices) -
Method Summary
Modifier and TypeMethodDescriptionsetFlexible(Boolean flexible) setMaxTipAmount(Integer maxTipAmount) setNeedEmail(Boolean needEmail) setNeedName(Boolean needName) setNeedPhoneNumber(Boolean needPhoneNumber) setNeedShippingAddress(Boolean needShippingAddress) setPhotoHeight(Integer photoHeight) setPhotoSize(Integer photoSize) setPhotoUrl(String photoUrl) setPhotoWidth(Integer photoWidth) setProviderData(String providerData) setProviderToken(String providerToken) setSendEmailToProvider(Boolean sendEmailToProvider) setSendPhoneNumberToProvider(Boolean sendPhoneNumberToProvider) setSuggestedTipAmounts(List<Integer> suggestedTipAmounts)
-
Constructor Details
-
InputInvoiceMessageContent
public InputInvoiceMessageContent(String title, String description, String payload, String currency, LabeledPrice[] prices)
-
-
Method Details
-
setProviderToken
- Parameters:
providerToken- Payment provider token- Returns:
- this
-
setProviderData
- Parameters:
providerData- Data about the invoice, which will be shared with the payment provider.- Returns:
- this
-
setPhotoUrl
- Parameters:
photoUrl- URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service.- Returns:
- this
-
setPhotoSize
- Parameters:
photoSize- Photo size in bytes- Returns:
- this
-
setPhotoWidth
- Parameters:
photoWidth- Photo width- Returns:
- this
-
setPhotoHeight
- Parameters:
photoHeight- Photo height- Returns:
- this
-
setMaxTipAmount
- Parameters:
maxTipAmount- The maximum accepted amount for tips in the smallest units of the currency. Defaults to 0. Not supported for payments in Telegram Stars.- Returns:
- this
-
setSuggestedTipAmounts
- Parameters:
suggestedTipAmounts- Array of suggested amounts of tip in the smallest units of the currency. At most 4 suggested tip amounts can be specified.- Returns:
- this
-
setNeedName
- Parameters:
needName- Pass True if you require the user's full name to complete the order. Ignored for payments in Telegram Stars.- Returns:
- this
-
setNeedPhoneNumber
- Parameters:
needPhoneNumber- Pass True if you require the user's phone number to complete the order. Ignored for payments in Telegram Stars.- Returns:
- this
-
setNeedEmail
- Parameters:
needEmail- Pass True if you require the user's email address to complete the order. Ignored for payments in Telegram Stars.- Returns:
- this
-
setNeedShippingAddress
- Parameters:
needShippingAddress- Pass True if you require the user's shipping address to complete the order. Ignored for payments in Telegram Stars.- Returns:
- this
-
setSendPhoneNumberToProvider
- Parameters:
sendPhoneNumberToProvider- Pass True if the user's phone number should be sent to the provider. Ignored for payments in Telegram Stars.- Returns:
- this
-
setSendEmailToProvider
- Parameters:
sendEmailToProvider- Pass True if the user's email address should be sent to the provider. Ignored for payments in Telegram Stars.- Returns:
- this
-
setFlexible
- Parameters:
flexible- Pass True if the final price depends on the shipping method. Ignored for payments in Telegram Stars.- Returns:
- this
-