NovaGram

An Object-Oriented PHP library for Telegram Bots

View the Project on GitHub skrtdev/NovaGram

Installation via Composer

If Composer is installed globally:

composer require skrtdev/novagram

If Composer is installed in the current directory:

php composer.phar require skrtdev/novagram

After Installation, include NovaGram with:

require __DIR__ . '/vendor/autoload.php';

Installation via Phar

Automatically download and require the Phar file.
If you want to update NovaGram, just delete the Phar file, it is generated from the master branch.

if (!file_exists('novagram.phar')) {
    copy('https://novagram.ga/phar', 'novagram.phar');
}
require_once 'novagram.phar';

How to create a Bot Instance