Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Events/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Handler
{
const UPDATE_TYPE_WEBHOOK = 1;
const UPDATE_TYPE_POLLING = 2;
const UPDATE_TYPE_SOCKET_SERVER = 3;
const UPDATE_TYPE_HTTP_SERVER = 3;

public static array $eventHandlers = [];

Expand Down
2 changes: 1 addition & 1 deletion src/TelegramAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public function hear(int $updateType = Handler::UPDATE_TYPE_WEBHOOK, string $uri
exit();
});
break;
case Handler::UPDATE_TYPE_SOCKET_SERVER:
case Handler::UPDATE_TYPE_HTTP_SERVER:
$options = getopt('d::', [
'drop_pending_updates::'
]);
Expand Down
3 changes: 2 additions & 1 deletion src/Utils/Logger/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Psr\Log\LoggerTrait;
use Psr\Log\LogLevel;
use Throwable;
use function Amp\ByteStream\getOutputBufferStream;
use function Botify\array_some;
use function Botify\base_path;
use function Botify\config;
Expand Down Expand Up @@ -93,7 +94,7 @@ public function log($level, $message, array $context = []): void
}

if ($this->type & static::ECHO_TYPE) {
\Botify\file_put_contents('php://output', Colorize::log($level, $log));
getOutputBufferStream()->write(Colorize::log($level, $log));
}

if ($this->type & static::FILE_TYPE) {
Expand Down