get_payment_form()

Client.get_payment_form()

Get an invoice payment form.

Supports both modern input_invoice and pyroblack <= 2.7.2 chat_id + message_id (or invoice link) call styles.

Usable by Users Bots
Parameters:
  • input_invoice (:obj:`~pyrogram.types.InputInvoice`, *optional*) – The invoice (modern API).

  • chat_id (``int`` | ``str``, *optional*) – Target chat (pyroblack <= 2.7.2 / positional style).

  • message_id (``int`` | ``str``, *optional*) – Message id with the invoice, or a t.me/$... link / slug (pyroblack <= 2.7.2 style).

  • invoice_link (``str``, *optional*) – Invoice link or slug.

Returns:

:obj:`~pyrogram.types.PaymentForm` (On success, a payment form is returned.)