send_payment_form()¶
- Client.send_payment_form()¶
Send a filled-out payment form / pay an invoice.
Supports modern
payment_form_id+input_invoiceand pyroblack <= 2.7.2chat_id+message_id(stars) call style.Usable by Users Bots
- Parameters:¶
payment_form_id (``int``, *optional*) – Payment form id from
get_payment_form().input_invoice (:obj:`~pyrogram.types.InputInvoice`, *optional*) – The invoice (modern API).
credentials (:obj:`~pyrogram.types.InputCredentials`, *optional*) – Payment credentials. None for Telegram Stars.
chat_id (``int`` | ``str``, *optional*) – Target chat (pyroblack <= 2.7.2).
message_id (``int`` | ``str``, *optional*) – Message id or invoice link/slug (pyroblack <= 2.7.2).
invoice_link (``str``, *optional*) – Invoice link or slug.
- Returns:¶
``bool`` | :obj:`~pyrogram.types.PaymentResult` | list (On success.)