Skip to content

abbas980301/TelegramKeyboardsHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
];

About

Simple library for telegram keyboards Bot API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages