We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4042178 commit 0f4352fCopy full SHA for 0f4352f
src/Request.php
@@ -46,7 +46,7 @@ public static function initialize(Telegram $telegram)
46
47
public static function setInputRaw($input)
48
{
49
- if (is_string($input)) {
+ if (is_string($input) | $input == false) {
50
self::$input = $input;
51
} else {
52
throw new TelegramException("Log input is not a string");
@@ -116,6 +116,7 @@ public static function executeCurl($action, array $data)
116
}
117
118
$curlConfig = array(
119
+ CURLOPT_HTTPHEADER => ['Content-Type: application/json'],
120
CURLOPT_URL => 'https://api.telegram.org/bot' . self::$telegram->getApiKey() . '/' . $action,
121
CURLOPT_POST => true,
122
CURLOPT_RETURNTRANSFER => true
0 commit comments