mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Payment example fix
This commit is contained in:
parent
dd25432359
commit
e444bc2a0b
@ -38,21 +38,20 @@ def command_pay(message):
|
|||||||
"Real cards won't work with me, no money will be debited from your account."
|
"Real cards won't work with me, no money will be debited from your account."
|
||||||
" Use this test card number to pay for your Time Machine: `4242 4242 4242 4242`"
|
" Use this test card number to pay for your Time Machine: `4242 4242 4242 4242`"
|
||||||
"\n\nThis is your demo invoice:", parse_mode='Markdown')
|
"\n\nThis is your demo invoice:", parse_mode='Markdown')
|
||||||
bot.send_invoice(message.chat.id, title='Working Time Machine',
|
bot.send_invoice(
|
||||||
description='Want to visit your great-great-great-grandparents?'
|
message.chat.id, #chat_id
|
||||||
' Make a fortune at the races?'
|
'Working Time Machine', #title
|
||||||
' Shake hands with Hammurabi and take a stroll in the Hanging Gardens?'
|
' Want to visit your great-great-great-grandparents? Make a fortune at the races? Shake hands with Hammurabi and take a stroll in the Hanging Gardens? Order our Working Time Machine today!', #description
|
||||||
' Order our Working Time Machine today!',
|
'HAPPY FRIDAYS COUPON', #invoice_payload
|
||||||
provider_token=provider_token,
|
provider_token, #provider_token
|
||||||
currency='usd',
|
'usd', #currency
|
||||||
|
prices, #prices
|
||||||
photo_url='http://erkelzaar.tsudao.com/models/perrotta/TIME_MACHINE.jpg',
|
photo_url='http://erkelzaar.tsudao.com/models/perrotta/TIME_MACHINE.jpg',
|
||||||
photo_height=512, # !=0/None or picture won't be shown
|
photo_height=512, # !=0/None or picture won't be shown
|
||||||
photo_width=512,
|
photo_width=512,
|
||||||
photo_size=512,
|
photo_size=512,
|
||||||
is_flexible=False, # True If you need to set up Shipping Fee
|
is_flexible=False, # True If you need to set up Shipping Fee
|
||||||
prices=prices,
|
start_parameter='time-machine-example')
|
||||||
start_parameter='time-machine-example',
|
|
||||||
invoice_payload='HAPPY FRIDAYS COUPON')
|
|
||||||
|
|
||||||
|
|
||||||
@bot.shipping_query_handler(func=lambda query: True)
|
@bot.shipping_query_handler(func=lambda query: True)
|
||||||
|
Loading…
Reference in New Issue
Block a user