Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the web_ app #384

Open
tuziaichiwobiancao opened this issue Dec 10, 2022 · 1 comment
Open

How to use the web_ app #384

tuziaichiwobiancao opened this issue Dec 10, 2022 · 1 comment

Comments

@tuziaichiwobiancao
Copy link

How to use the web_ app
$arr = [
[
['text' => "test", "web_app" => ["url" => "https://www.github.com"]],
]
];
$keyboard = new \TelegramBot\Api\Types\Inline\InlineKeyboardMarkup($arr);
$bot->sendMessage("-1001177468102","test","HTML",true,null,$keyboard);
Bad Request: BUTTON_TYPE_INVALID

@plakhotnyuk
Copy link

$menuinline = new \TelegramBot\Api\Types\Inline\InlineKeyboardMarkup([[['callback_data' => 'data_name',"text" => "BUTTON_NAME","url" => "https://www.github.com"]]],true, true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants