An Object-Oriented PHP library for Telegram Bots
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';
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';