tgbotlib/tests/get_updates.php
2023-02-19 17:25:59 -05:00

13 lines
No EOL
275 B
PHP

<?php
use commands\StartCommand;
require 'ncc';
import('net.nosial.tgbotlib');
require 'commands/StartCommand.php';
$bot = new TgBotLib\Bot('YOUR_BOT_TOKEN');
$bot->setCommandHandler('start', new StartCommand());
$bot->handleGetUpdates(true);