Update bot token handling and refactor Bot class.
This commit is contained in:
parent
20735b36db
commit
3dd46c8d27
5 changed files with 44 additions and 2784 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
require __DIR__ . DIRECTORY_SEPARATOR . 'autoload.php';
|
||||
|
||||
$bot = new TgBotLib\Bot('<BOT TOKEN>');
|
||||
$bot = new TgBotLib\BotOld('<BOT TOKEN>');
|
||||
|
||||
$bot->setCommandHandler('start', new \commands\StartCommand());
|
||||
$bot->setCommandHandler('hash', new \commands\HashCommand());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue