Where available and how to use openShare #434
Closed
an-vadim-an
started this conversation in
General
Replies: 1 comment 3 replies
-
|
What is openShare? Where did you find this method? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to use openShare to test sending a message from Mini App to other chat rooms. I used the @telegram-apps/sdk library . Is openShare available in it or do I need to use another library?
mainButton.on('click', async () => {
try {
await miniApp.openShare({
text: 'Test',
});
console.log('The chat selection window is open to send a message.');
} catch (error) {
console.error('Error when opening the chat selection window:', error);
}
});
Beta Was this translation helpful? Give feedback.
All reactions