Answer the question
In order to leave comments, you need to log in
How to send a link in the form of a button to telegram via bot api?
Hello.
I am writing a telegram bot in php, I want to give the user an invite link to the chat through the bot so that the link itself is not available to the user, only a click on it. I saw such a button-link from some other bot, but in the documentation I dug and dug, I did not find a way.
Tell?..
Answer the question
In order to leave comments, you need to log in
InlineKeyboardButton has a url parameter , if you pass a link to it, then when you click on the button, the link will open
https://telegram-bot-sdk.readme.io/reference#sendm...
https://tlgrm.ru/docs/bots/api#sendmessage
You can send it as HTML.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question