TelegramSwift icon indicating copy to clipboard operation
TelegramSwift copied to clipboard

`invoice_closed` is not fired on cancel

Open BodySplash opened this issue 5 months ago • 0 comments

Steps to reproduce

  1. generate a valid invoice on the bot side, with the create invoice link method
  2. subscribe to invoice_closed event in the mini app
  3. send web_app_open_invoice with the proper slug (extracted from the link) in the TMA
  4. 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

BodySplash avatar Sep 10 '24 08:09 BodySplash