Last active
May 28, 2023 06:18
-
-
Save antimech/285f58b54efcca56ebabe6a85cacbaba to your computer and use it in GitHub Desktop.
Botman 2.0 Telegram inline keyboard snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$welcomeMessage = 'Hello and welcome! This is a very cool service behind a paywall. Get started today!'; | |
$keyboard = [ | |
'Get a free trial for 5 days', | |
'Check FAQ' | |
]; | |
// Reply to user | |
$bot->reply($welcomeMessage, [ | |
'parse_mode' => 'Markdown', | |
'reply_markup' => json_encode([ | |
'inline_keyboard' => $keyboard | |
]) | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment