M
M
muhasa2020-02-12 18:34:47
PHP
muhasa, 2020-02-12 18:34:47

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

2 answer(s)
Z
Zudwa, 2020-02-12
@pembrock

InlineKeyboardButton has a url parameter , if you pass a link to it, then when you click on the button, the link will open

A
alekssamos, 2020-02-12
@alekssamos

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 question

Ask a Question

731 491 924 answers to any question