TelegramSwift
TelegramSwift copied to clipboard
`invoice_closed` is not fired on cancel
Steps to reproduce
- generate a valid invoice on the bot side, with the create invoice link method
- subscribe to
invoice_closed
event in the mini app - send
web_app_open_invoice
with the proper slug (extracted from the link) in the TMA - close the invoice modal (by clicking anywhere or using the close button)
Expected behaviour
invoice_closed
event should be sent, with status
cancelled
(according to the specification )
Actual behaviour
invoice_closed
is never fired
However, It is fired when the payment is processed, but twice :
- one time with
status
paid
- one time with
status
cancelled
Operating system
Sonoma 14.6.1
Version of Telegram Desktop
11.1.267602
Installation source
Mac App Store