SDK icon indicating copy to clipboard operation
SDK copied to clipboard

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

Open stefanel96 opened this issue 11 months ago • 1 comments

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.

stefanel96 avatar Jan 04 '25 14:01 stefanel96

maybe u use the different bot api token

EsirTan avatar Jan 21 '25 04:01 EsirTan