inputMediaInvoice
Generated invoice of a bot payment
type tg.InputMediaInvoice struct { /* ... */ }
Implements InputMedia.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Title | string | yes | Product name, 1-32 characters |
Description | string | yes | Product description, 1-255 characters |
Photo | InputWebDocument | — | 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. |
Invoice | Invoice | yes | The actual invoice |
Payload | []byte | yes | Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. |
Provider | string | — | Payments provider token, obtained via Botfather |
ProviderData | DataJSON | yes | JSON-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider. |
StartParam | string | — | Unique bot deep links start parameter. If present, forwarded copies of the sent message will have a URL button with a deep link to the bot (instead of a Pay button) with the value used as the start parameter. If absent, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice. |
ExtendedMedia | InputMediaClass | — | Deprecated |
References
- Official documentation
- Generated Go reference
- TL definition:
inputMediaInvoice#405fef0d