Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invoice_closed is not called when user closes invoice in a mini app #28383

Closed
BodySplash opened this issue Sep 10, 2024 · 1 comment
Closed
Labels
bug TG macOS Swift github.com/overtake/TelegramSwift

Comments

@BodySplash
Copy link

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

Crash ID

No response

Logs

No response

@BodySplash BodySplash added the bug label Sep 10, 2024
Copy link

Sorry, but according to the version you specify in this issue, you are using the Telegram for macOS, not the Telegram Desktop.
You can report your issue to the group or to the repository of Telegram for macOS.

If I made a mistake and closed your issue wrongly, please reopen it. Thanks!

@github-actions github-actions bot added the TG macOS Swift github.com/overtake/TelegramSwift label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TG macOS Swift github.com/overtake/TelegramSwift
Projects
None yet
Development

No branches or pull requests

1 participant