mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-01 10:49:58 +03:00
docs: fix simple typo, recieved -> received
There is a small typo in telethon_examples/payment.py. Should read `received` rather than `recieved`.
This commit is contained in:
parent
acd4c8648e
commit
000c5e4538
|
@ -83,7 +83,7 @@ async def payment_pre_checkout_handler(event: types.UpdateBotPrecheckoutQuery):
|
|||
async def payment_received_handler(event):
|
||||
if isinstance(event.message.action, types.MessageActionPaymentSentMe):
|
||||
payment: types.MessageActionPaymentSentMe = event.message.action
|
||||
# do something after payment was recieved
|
||||
# do something after payment was received
|
||||
if payment.payload.decode('UTF-8') == 'product A':
|
||||
await bot.send_message(event.message.from_id, 'Thank you for buying product A!')
|
||||
elif payment.payload.decode('UTF-8') == 'product B':
|
||||
|
|
Loading…
Reference in New Issue
Block a user