pyrofork: fix send_invoice examples

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2024-07-31 11:49:18 +07:00
parent 9669d62562
commit 5a9c11934a
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -114,22 +114,24 @@ class SendInvoice:
.. code-block:: python .. code-block:: python
# USD # USD
app.send_invoice(chat_id, types.InputMediaInvoice( app.send_invoice(
chat_id,
title="Product Name", title="Product Name",
description="Product Description", description="Product Description",
currency="USD", currency="USD",
prices=[types.LabeledPrice("Product", 1000)], prices=[types.LabeledPrice("Product", 1000)],
provider="Stripe_provider_codes", provider="Stripe_provider_codes",
provider_data="{}" provider_data="{}"
)) )
# Telegram Stars # Telegram Stars
app.send_invoice(chat_id, types.InputMediaInvoice( app.send_invoice(
chat_id,
title="Product Name", title="Product Name",
description="Product Description", description="Product Description",
currency="XTR", currency="XTR",
prices=[types.LabeledPrice("Product", 1000)] prices=[types.LabeledPrice("Product", 1000)]
)) )
""" """
if reply_markup is not None: if reply_markup is not None: