This commit is contained in:
brian committed 2022-12-30 00:43:45 +00:00
1 parent e1adfdec40
commit 5d109f8b23
7 files changed
+861

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
<?php
require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../env.php';
try {
$telegram = new Longman\TelegramBot\Telegram($bot_api_key, $bot_username);
$telegram->addCommandsPath(realpath(__DIR__ . '/../src/Commands'));
// Handle telegram webhook request
$telegram->handle();
} catch (Longman\TelegramBot\Exception\TelegramException $e) {
// file_put_contents(__DIR__ . '/../err.txt', $e->getMessage());
}