Search by

yehudae / telegram-bots-class

YehudaE

Telegram-api-bots class

Package info

github.com/PHP-Telegram-Bots/TelegramBots-Class

pkg:composer/yehudae/telegram-bots-class

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 5

Open Issues: 0

v0.1 2019-11-24 19:59 UTC

This package is auto-updated.

Last update: 2026-10-31 23:29:38 UTC


README

the best class in php to telegram-bots!!!

install

$ composer require yehudae/telegram-bots-class

use:

define('BOT', array(
    "token" => "<TOKEN>",
    "webHookUrl" => "https://telegram.org/Bot.php",
    "allowed_updates" => array ("message", "edited_message"),
    "debug" => false,
    // optional:
    // "timezone" => "Asia/Jerusalem",
    // "api_url" => "https://api.telegram.org", // for a local Bot API server
    ));

// the folder for the bot data (sqlite db, logs, cache), must be writable and outside the web folder
define('DATA_PATH', '/var/telegram-bots/BotsDATA/');

require_once("vendor/yehudae/telegram-bots-class/src/autoload.php");

Requires PHP 7.0 or newer (PHP 8 supported).

Contact in telegram: @YehudaEisenbergBot