good night guys, i want to ask about telegram bot with php. my problem is i need my button to be a directlink to website. here is my code
if ($text === "Website") {
$txt = 'http://www.dpmptsp.sidoarjokab.go.id';
apiRequest("sendMessage", array('chat_id' => $chat_id, 'parse_mode' => 'html', "text" => $txt));
}
when i click the button in telegram, it just print the link. Any suggestion to make the button just directing to website without print it and i need to click the link again?
Unfortunately, it doesn't support directly open without click at this time, for Telegram very cares about user privacy.
If you use HTML markup, you can send link like <a href="https://www.sean.taipei>Click Me</a>
, might have better UX.