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:
Tim Gates 2020-12-24 21:51:28 +11:00
parent acd4c8648e
commit 000c5e4538
No known key found for this signature in database
GPG Key ID: AE3BE0D53823CF05

View File

@ -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':