telegram api method · layer 229 · #0f91b065

payments.exportInvoice

usable by bots

Generate an invoice deep link

definition

payments.exportInvoice#f91b065 invoice_media:InputMedia = payments.ExportedInvoice;

parameters

nametypedescription
invoice_mediaInputMediaInvoice

returns

payments.ExportedInvoice

errors (11)

codeerrordescription
400BUSINESS_CONNECTION_INVALIDThe connection_id passed to the wrapping invokeWithBusinessConnection call is invalid.
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
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.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 143–229

idlayers
#0f91b065143–229