mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 07:58:58 +01:00
bugfixes
This commit is contained in:
parent
4fa69920fa
commit
bdc3ff6d8b
@ -27,8 +27,6 @@ use danog\MadelineProto\Loop\Impl\SignalLoop;
|
||||
use danog\MadelineProto\MTProtoTools\Crypt;
|
||||
use danog\MadelineProto\NothingInTheSocketException;
|
||||
use danog\MadelineProto\Tools;
|
||||
use Amp\ByteStream\StreamException;
|
||||
use Amp\ByteStream\PendingReadError;
|
||||
|
||||
/**
|
||||
* Socket read loop.
|
||||
|
@ -23,7 +23,6 @@ use Amp\Failure;
|
||||
use Amp\Loop;
|
||||
use Amp\Promise;
|
||||
use Amp\Success;
|
||||
use function Amp\ByteStream\getOutputBufferStream;
|
||||
use function Amp\ByteStream\getStdin;
|
||||
use function Amp\ByteStream\getStdout;
|
||||
use function Amp\Promise\all;
|
||||
@ -32,8 +31,6 @@ use function Amp\Promise\first;
|
||||
use function Amp\Promise\some;
|
||||
use function Amp\Promise\timeout;
|
||||
use function Amp\Promise\wait;
|
||||
use function Amp\ByteStream\getStdin;
|
||||
use function Amp\ByteStream\getStdout;
|
||||
use function Amp\ByteStream\getOutputBufferStream;
|
||||
use function Amp\File\exists;
|
||||
use function Amp\File\touch;
|
||||
|
@ -58,6 +58,15 @@ try {
|
||||
$MadelineProto->accept_tos();
|
||||
}
|
||||
}
|
||||
|
||||
$inputMediaUploadedPhoto1 = ['_' => 'inputMediaUploadedPhoto','file' => '1.jpg'];
|
||||
$inputMediaUploadedPhoto2 = ['_' => 'inputMediaUploadedPhoto','file' => '2.jpg'];
|
||||
$inputMediaUploadedPhoto3 = ['_' => 'inputMediaUploadedPhoto','file' => '3.jpg'];
|
||||
$inputSingleMedia1 = ['_' => 'inputSingleMedia', 'media' => $inputMediaUploadedPhoto1, 'message' => 'str'];
|
||||
$inputSingleMedia2 = ['_' => 'inputSingleMedia', 'media' => $inputMediaUploadedPhoto2, 'message' => 'str'];
|
||||
$inputSingleMedia3 = ['_' => 'inputSingleMedia', 'media' => $inputMediaUploadedPhoto3, 'message' => 'str'];
|
||||
$Updates = $this->messages->sendMultiMedia(['peer' => 'danogentili','multi_media' => [$inputSingleMedia3, $inputSingleMedia2,$inputSingleMedia1]]);
|
||||
|
||||
//var_dump(count($MadelineProto->get_pwr_chat('@madelineproto')['participants']));
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user