tgbotlib/tests/get_updates.php

13 lines
275 B
PHP
Raw Normal View History

2023-02-14 20:55:51 -05:00
<?php
2023-02-19 17:25:59 -05:00
use commands\StartCommand;
2023-02-14 20:55:51 -05:00
require 'ncc';
import('net.nosial.tgbotlib');
2023-02-19 17:25:59 -05:00
require 'commands/StartCommand.php';
$bot = new TgBotLib\Bot('YOUR_BOT_TOKEN');
$bot->setCommandHandler('start', new StartCommand());
$bot->handleGetUpdates(true);