10 lines
No EOL
287 B
PHP
10 lines
No EOL
287 B
PHP
<?php
|
|
|
|
require __DIR__ . DIRECTORY_SEPARATOR . 'autoload.php';
|
|
|
|
$bot = new TgBotLib\Bot(getenv('BOT_TOKEN'));
|
|
|
|
$bot->setCommandHandler('start', new \commands\StartCommand());
|
|
$bot->setCommandHandler('hash', new \commands\HashCommand());
|
|
|
|
$bot->handleGetUpdates(true); |