Is there any way to do deep linking with this library?
i.e. deep-linking
Yes you can do it ...
I found nothing in the docs. could you explain how I can do this?
Yes, it is possible. As the docs (https://core.telegram.org/bots#deep-linking) say,
... your bot will receive a message from that user in this format:
/start PAYLOAD`
PAYLOADstands for the value of thestartorstartgroupparameter that was passed in the link.
Therefore, all you've to do is capture the message with the format described above. For example,
bot.onText(/\/start (\w+)/, function(msg, match) {
const payload = match[1];
// ....
// use payload
// ...
return bot.sendMessage(msg.chat.id, "bot at your service");
});
Most helpful comment
Yes, it is possible. As the docs (https://core.telegram.org/bots#deep-linking) say,
Therefore, all you've to do is capture the message with the format described above. For example,