1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 23:14:38 +01:00

fix get story method

This commit is contained in:
َAhJ 2023-09-24 01:26:40 +03:30
parent 30dbf357ff
commit caabdbe6dd

View File

@ -17,13 +17,13 @@
namespace danog\MadelineProto\EventHandler;
use AssertionError;
use danog\MadelineProto\MTProto;
use danog\MadelineProto\ParseMode;
use danog\MadelineProto\MTProtoTools\DialogId;
use danog\MadelineProto\EventHandler\Action\Typing;
use danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL;
use danog\MadelineProto\EventHandler\Story\Story;
use danog\MadelineProto\EventHandler\Story\StoryDeleted;
use danog\MadelineProto\MTProto;
use danog\MadelineProto\MTProtoTools\DialogId;
use danog\MadelineProto\ParseMode;
use danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL;
use Webmozart\Assert\Assert;
use Webmozart\Assert\InvalidArgumentException;
@ -276,7 +276,7 @@ abstract class AbstractMessage extends Update implements SimpleFilters
Assert::true($this->senderId > 0);
$client = $this->getClient();
$result = $client->methodCallAsyncRead(
'stories.getUserStories',
'stories.getPeerStories',
[
'peer' => $this->senderId,
]