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

shareMessage method returns "MESSAGE_EXPIRED" on iPhone 13 pro, almost always #45

Open
stefanel96 opened this issue Jan 4, 2025 · 0 comments
Labels
TG Issue Issue that is related rather to Telegram than to this library

Comments

@stefanel96
Copy link

On an iPhone 13 Pro, the shareMessage method in the Telegram SDK almost always returns the error 'MESSAGE_EXPIRED'. Occasionally, the method works as expected, but the success rate is extremely low.

Steps to Reproduce:
Use the shareMessage method on an iPhone 13 Pro.
Observe that the method frequently fails with the 'MESSAGE_EXPIRED' error.
Environment Details:

Telegram Version: Latest (confirmed as of [insert date]).
Device: iPhone 13 Pro.
OS Settings: Default settings (region, time, and other configurations unchanged).
Attempts to Fix:

Attempts to Fix:
Reinstalled the Telegram app.
Verified that the issue persists with the latest version of Telegram and on default device settings.
Attempted to use the following approach based on the SDK's GitHub source code:
"window.Telegram.WebView.postEvent('web_app_send_prepared_message', false, { id: msgData });"
Unfortunately, this did not resolve the issue, as the same 'MESSAGE_EXPIRED' error occurred.

Would appreciate any insights or fixes for this issue. Let me know if additional logs or details are required.

@ArthurStam ArthurStam added the TG Issue Issue that is related rather to Telegram than to this library label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TG Issue Issue that is related rather to Telegram than to this library
Development

No branches or pull requests

2 participants