Skip to content
This repository was archived by the owner on May 14, 2022. It is now read-only.

Commit 745fb8c

Browse files
committed
Updated RawClient-comments for json-output
1 parent 4667237 commit 745fb8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Zyberspace/Telegram/Cli/RawClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function exec($command)
7272

7373
fwrite($this->_fp, str_replace("\n", '\n', $command) . PHP_EOL);
7474

75-
$answer = fgets($this->_fp); //"ANSWER $bytes" if there is a return value or \n if not
75+
$answer = fgets($this->_fp); //"ANSWER $bytes" or false if an error occurred
7676
if (is_string($answer)) {
7777
if (substr($answer, 0, 7) === 'ANSWER ') {
7878
$bytes = ((int) substr($answer, 7)) + 1; //+1 because the json-return seems to miss one byte

0 commit comments

Comments
 (0)