Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 681 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 681 Bytes

Simple telegram keyboards Bot API Helper

Simply create telegram Inline/Reply keyboards.

install

composer require shakibonline/telegram-keyboards-helper

Usage

You can find tested code in example.php file.

require_once 'vendor/autoload.php';

$button = new \Shakibonline\InlineKeyboardButton();
$button->text = 'shakibonline';
$button->callback_data = 'Test';

$inlineKeyboardMarkup = \Shakibonline\InlineKeyboardMarkup::create($button);
$option = [
    'chat_id' => 122,
    'text' => 'blablabla',
    'reply_markup' => json_encode($inlineKeyboardMarkup)
];