This commit is contained in:
netkas 2024-11-03 18:23:34 -05:00
parent 32d8e233b8
commit a89e968a40

View file

@ -5,7 +5,6 @@
use InvalidArgumentException; use InvalidArgumentException;
use TgBotLib\Exceptions\TelegramException; use TgBotLib\Exceptions\TelegramException;
use TgBotLib\Objects\Update; use TgBotLib\Objects\Update;
use function PHPUnit\Framework\isEmpty;
class WebhookBot extends Bot class WebhookBot extends Bot
{ {
@ -52,7 +51,7 @@
return; return;
} }
if(isEmpty($secretToken)) if(empty($secretToken))
{ {
throw new InvalidArgumentException('Secret token cannot be empty.'); throw new InvalidArgumentException('Secret token cannot be empty.');
} }