mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
pyrofork: fix send_invoice examples
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
9669d62562
commit
5a9c11934a
1 changed files with 6 additions and 4 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue