shakibonline/telegram-keyboards-helper

Simple library for telegram keyboards Bot API

Maintainers

Package info

github.com/shakibonline/TelegramKeyboardsHelper

Issues

pkg:composer/shakibonline/telegram-keyboards-helper

Statistics

Installs: 10

Dependents: 0

Suggesters: 0

Stars: 1

dev-master 2017-05-24 06:56 UTC

This package is not auto-updated.

Last update: 2026-03-01 10:05:50 UTC


README

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