Skip to content

WebApp.shareMessage call only once #51

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

Open
ksupipr opened this issue Mar 28, 2025 · 4 comments
Open

WebApp.shareMessage call only once #51

ksupipr opened this issue Mar 28, 2025 · 4 comments

Comments

@ksupipr
Copy link

ksupipr commented Mar 28, 2025

Hello
I call from server bot id message for share and send by WebApp.shareMessage.
I close popup or send this message to user.
One more time get id message and send by WebApp.shareMessage and... nothing and error in console '[Telegram.WebApp] Share message is already opened'

How I fix it?

@ksupipr
Copy link
Author

ksupipr commented Mar 28, 2025

@kuhel Помоги пожалуйста

@yingjieweb
Copy link

@ksupipr Hi, bro. Did you fix it? I just met this bug and have not found a method to fix it.

@ksupipr
Copy link
Author

ksupipr commented Apr 10, 2025

@ksupipr Hi, bro. Did you fix it? I just met this bug and have not found a method to fix it.

Hi. Not found legal method )
I send message for this

window.Telegram.WebView.postEvent(
  'web_app_send_prepared_message',
  (result?: boolean) => { ...callback... },
  { id: mess_id }
);

@yingjieweb
Copy link

@ksupipr Thanks for your suggestion! I have already implemented your solution using Telegram.WebView.postEvent('web_app_send_prepared_message', ...) instead of WebApp.shareMessage().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants