import { Api } from "https://deno.land/x/grammy@v1.30.1/mod.ts";
Use this method to send invoices. On success, the sent Message is returned.
Parameters
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
prices: readonly LabeledPrice[]
Price breakdown, a list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)
optional
other: Other<R, "sendInvoice", | "chat_id"
| "title"
| "description"
| "payload"
| "currency"
| "prices"
Optional remaining parameters, confer the official reference below
optional
signal: AbortSignalOptional AbortSignal
to cancel the request
Official reference: https://core.telegram.org/bots/api#sendinvoice