1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 06:34:41 +01:00
This commit is contained in:
danogentili 2016-11-17 14:32:56 +03:00
parent 5a8e490e6d
commit 5a22fd0665

View File

@ -220,8 +220,7 @@ class Connection extends Tools
$this->write($step2);
break;
case 'tcp_intermediate':
$step1 = \danog\PHP\Struct::pack('<I', strlen($message)).$message;
$this->write($step1);
$this->write(\danog\PHP\Struct::pack('<I', strlen($message)).$message);
break;
case 'tcp_abridged':
$len = strlen($message) / 4;