Closed culda closed 3 months ago
Works when I invoke the method from the api object.
telegram.api.answerPreCheckoutQuery({
pre_checkout_query_id: context.id,
ok: true,
});
have to ask a question: why exactly are you handling updates manually? just to be sure everything is going ok on your side
bump?
i will close this issue as no further answer was provided, assuming the issue is not present anymore. feel free to reopen it if it happens again!
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