Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>InputMediaInvoice_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class InputMediaInvoice_
extends _InputMedia_
import { InputMediaInvoice_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Generated invoice of a bot payment

Constructors

new
InputMediaInvoice_(params: { title: string; description: string; photo?: enums.InputWebDocument; invoice: enums.Invoice; payload: Uint8Array; provider: string; provider_data: enums.DataJSON; start_param?: string; extended_media?: enums.InputMedia; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
description: string

Product description, 1-255 characters

optional
extended_media: enums.InputMedia

Extended media

invoice: enums.Invoice

The actual invoice

payload: Uint8Array

Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.

optional
photo: enums.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.

provider: string

Payments provider token, obtained via Botfather

provider_data: enums.DataJSON

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.

optional
start_param: 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.

title: string

Product name, 1-32 characters

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc