payments.exportInvoice

Generate an invoice deep link

 Method schema is available as of layer 143. Switch »

Parameters

Name Type Description
invoice_media InputMedia Invoice

Result

payments.ExportedInvoice

Possible errors

Code Type Description
400 CURRENCY_TOTAL_AMOUNT_INVALID The total amount of all prices is invalid.
400 INVOICE_PAYLOAD_INVALID The specified invoice payload is invalid.
400 MEDIA_INVALID Media invalid.
400 PAYMENT_PROVIDER_INVALID The specified payment provider is invalid.
400 STARS_INVOICE_INVALID The specified Telegram Star invoice is invalid.
400 WEBDOCUMENT_MIME_INVALID Invalid webdocument mime type provided.
400 WEBDOCUMENT_URL_EMPTY The passed web document URL is empty.

Bots can use this method

Related pages

Deep links

Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.

Go up