v1
This commit is contained in:
1 parent
e1adfdec40
commit
5d109f8b23
7 files changed
+861
No files matched your search
Executable
+13
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
require __DIR__ . '/vendor/autoload.php';
|
||||
require __DIR__ . '/env.php';
|
||||
|
||||
try {
|
||||
$telegram = new Longman\TelegramBot\Telegram($bot_api_key, $bot_username);
|
||||
$result = $telegram->setWebhook($hook_url);
|
||||
if ($result->isOk()) {
|
||||
echo $result->getDescription();
|
||||
}
|
||||
} catch (Longman\TelegramBot\Exception\TelegramException $e) {
|
||||
echo $e->getMessage();
|
||||
}
|
||||
Reference in new issue
Block a user