| 89 | } |
| 90 | |
| 91 | type InputInvoiceMessageContent struct { |
| 92 | /*Product name, 1-32 characters*/ |
| 93 | Title string `json:"title"` |
| 94 | /*Product description, 1-255 characters*/ |
| 95 | Description string `json:"description"` |
| 96 | /*Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.*/ |
| 97 | Payload string `json:"payload"` |
| 98 | /*Payment provider token, obtained via Botfather*/ |
| 99 | ProviderToken string `json:"provider_token"` |
| 100 | /*Three-letter ISO 4217 currency code*/ |
| 101 | Currency string `json:"currency"` |
| 102 | /*Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)*/ |
| 103 | Prices []LabeledPrice `json:"prices"` |
| 104 | /*Optional. The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0*/ |
| 105 | MaxTipAmount int `json:"max_tip_amount,omitempty"` |
| 106 | /*Optional. A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount.*/ |
| 107 | SuggestedTipAmounts []int `json:"suggested_tip_amounts,omitempty"` |
| 108 | /*Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider.*/ |
| 109 | ProviderData string `json:"provider_data,omitempty"` |
| 110 | /* Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.*/ |
| 111 | PhotoURL string `json:"photo_url,omitempty"` |
| 112 | /* Optional. Photo size*/ |
| 113 | PhotoSize int `json:"photo_size,omitempty"` |
| 114 | /* Optional. Photo width*/ |
| 115 | PhotoWidth int `json:"photo_width,omitempty"` |
| 116 | /* Optional. Photo height*/ |
| 117 | PhotoHeight int `json:"photo_height,omitempty"` |
| 118 | /*Optional. Pass True, if you require the user's full name to complete the order*/ |
| 119 | NeedName bool `json:"need_name,omitempty"` |
| 120 | /*Optional. Pass True, if you require the user's phone number to complete the order*/ |
| 121 | NeedPhoneNumber bool `json:"need_phone_number,omitempty"` |
| 122 | /*Optional. Pass True, if you require the user's email address to complete the order*/ |
| 123 | NeedEmail bool `json:"need_email,omitempty"` |
| 124 | /*Optional. Pass True, if you require the user's shipping address to complete the order*/ |
| 125 | NeedShippingAddress bool `json:"need_shipping_address,omitempty"` |
| 126 | /* Optional. Pass True, if user's phone number should be sent to provider*/ |
| 127 | SendPhoneNumberToProvider bool `json:"send_phone_number_to_provider,omitempty"` |
| 128 | /*Optional. Pass True, if user's email address should be sent to provider*/ |
| 129 | SendEmailToProvider bool `json:"send_email_to_provider,omitempty"` |
| 130 | /*Optional. Pass True, if the final price depends on the shipping method*/ |
| 131 | IsFlexible bool `json:"is_flexible,omitempty"` |
| 132 | } |
| 133 | |
| 134 | func (*InputInvoiceMessageContent) GetType() string { |
| 135 | return "InputVoiceMessageContent" |
nothing calls this directly
no outgoing calls
no test coverage detected