Reputation: 8936
I'm using node-telegram-bot-api and I Have an inline Keyboard, How Can I Share a link When a user click on that Inline Link? I need to Choose an Conversation and after that paste this link in that Conversation:
(telegram.me/my_bot?start)
const iopts = {
reply_markup: {
inline_keyboard: [
[{
text: `Share This Bot to Your Friends`,
url: `telegram.me/my_bot?start`
}]
]
}
};
Upvotes: 1
Views: 2548
Reputation: 8015
You can use switch_inline_query
instead of url
, see following example:
Upvotes: 2