Skip to main content

Cookbook

Is from native telegram app

import WebApp from '@twa-dev/sdk'
;['android', 'android_x', 'ios'].indexOf(WebApp.platform) >= 0

https://core.telegram.org/api/links

Select users from @wallet

https://t.me/wallet?startattach=send-assetCurrency__&choose=users

Share deep link

Need to encodeURI()

https://core.telegram.org/api/links#share-links

https://t.me/share/url?url={url}&text={text}

Start deep link

https://core.telegram.org/api/links#bot-links

https://t.me/EXAMPLE_BOT?start=1233456771121212121212121212121
# max length 64

Use server to receive request, input your bot token, and monitor the messages.

https://github.com/yagop/node-telegram-bot-api

For various response, need to survey