payments.exportInvoice #

Generate an invoice deep link

Layer 223

payments.exportedInvoice#aed0cbd9 url:string = payments.ExportedInvoice;
---functions---
payments.exportInvoice#f91b065 invoice_media:InputMedia = payments.ExportedInvoice;

Parameters #

NameTypeDescription
invoice_mediaInputMediaInvoice

Result #

payments.ExportedInvoice

Only bots can use this method #

This method can be invoked over a business connection » #

Possible errors #

CodeTypeDescription
400BUSINESS_CONNECTION_INVALIDThe connection_id passed to the wrapping invokeWithBusinessConnection call is invalid.
400CURRENCY_TOTAL_AMOUNT_INVALIDThe total amount of all prices is invalid.
400INVOICE_PAYLOAD_INVALIDThe specified invoice payload is invalid.
400MEDIA_INVALIDMedia invalid.
400PAYMENT_PROVIDER_INVALIDThe specified payment provider is invalid.
400STARS_INVOICE_INVALIDThe specified Telegram Star invoice is invalid.
400USER_BOT_REQUIREDThis method can only be called by a bot.
400WEBDOCUMENT_MIME_INVALIDInvalid webdocument mime type provided.
400WEBDOCUMENT_URL_EMPTYThe passed web document URL is empty.

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

Telegram Business #

Users can turn their Telegram account into a business account, gaining access to business features such as opening hours, location, quick replies, automated messages, custom start pages, chatbot support, and more.