You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to handle pre_checkout_query updates and I have this code which throws an error
TypeError: Cannot read properties of undefined (reading 'telegram')
at answerPreCheckoutQuery (file:///var/task/src/functions/shopTelegramWebhook/handler.mjs:37707:21)
at handleUpdate (file:///var/task/src/functions/shopTelegramWebhook/handler.mjs:66424:11)
at Runtime.handler (file:///var/task/src/functions/shopTelegramWebhook/handler.mjs:66369:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
the bug
I'm trying to handle pre_checkout_query updates and I have this code which throws an error
Code:
Note the invoicePayload is correctly logged from the context.
steps to reproduce
steps to reproduce the behavior:
context.answerPreCheckoutQuery({ ok: true })
expected behavior
Expect the call to not throw an error
environment
puregram
2.25.1
TypeScript
5
The text was updated successfully, but these errors were encountered: