saeed saeedi
saeed saeedi

Reputation: 1

how to open a android application by telegram bot api inline keyboard php

I want to make the user select a inline button in the Telegram bot to run and open an application installed on the device (if it is installed and available). For example, what can I put in the value of the address in the following code?

$keyboard =
   [
           'inline_keyboard' =>
            [
              [
               ['text' => 'open my application', 'url' => '']   
              ]
           ]
   ];

Is such a thing possible?

Upvotes: 0

Views: 805

Answers (1)

0stone0
0stone0

Reputation: 43962

No, this is not possible.


From the InlineKeyboard Documentation page:

url

HTTP or tg:// URL to be opened when the button is pressed.
Links tg://user?id=<user_id> can be used to mention a user by their ID without using a username, if this is allowed by their privacy settings.

So since there is no way to pass a 'custom' url like mailto:, there is no way to open an other app installed on the phone.

Upvotes: 0

Related Questions