Skip to content

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

@stefanel96

Description

@stefanel96

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TG IssueIssue that is related rather to Telegram than to this library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions