2017 © Pedro Peláez
 

library telegram-keyboards-helper

Simple library for telegram keyboards Bot API

image

shakibonline/telegram-keyboards-helper

Simple library for telegram keyboards Bot API

  • Wednesday, May 24, 2017
  • by shakibonline
  • Repository
  • 1 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Simple telegram keyboards Bot API Helper

Simply create telegram Inline/Reply keyboards., (*1)

install

composer require shakibonline/telegram-keyboards-helper

Usage

You can find tested code in example.php file., (*2)

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

The Versions

24/05 2017

dev-master

9999999-dev

Simple library for telegram keyboards Bot API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Abbas Shakiba