skip to Main Content

I saw a telegram mini app with a sharing button. After clicking, It will jump to my chat list and I can select a chat, and the content in the input box is pasted.
There is an interface for forwarding messages on the official website, but it seems to be forwarding to a specific person, not jumping to the chat list to share.
so, what can I do to implement this feature? Thanks very much.

2

Answers


  1. you can use

    https://t.me/share/url?url ={url}&text={text}
    
    Login or Signup to reply.
  2. import { initUtils } from '@tma.js/sdk';
    const utils = initUtils();
    utils.openTelegramLink(
      'https://t.me/share/url?url=https://t.me/catizenbot/gameapp?startapp=rp_1365932&text=%F0%9F%92%B0Catizen%3A%20Unleash%2C%20Play%2C%20Earn%20-%20Where%20Every%20Game%20Leads%20to%20an%20Airdrop%20Adventure!%0A%F0%9F%8E%81Let%27s%20play-to-earn%20airdrop%20right%20now!'
    );
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search