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

fix slowmode methods

This commit is contained in:
َAhJ 2023-09-23 20:57:10 +03:30
parent 91e43d894f
commit 287d204f21

View File

@ -480,7 +480,7 @@ final class GroupMessage extends Message
{
Assert::true(DialogId::isSupergroupOrChannel($this->chatId));
Assert::false($seconds === 0);
$this->getClient()->methodCallAsyncWrite(
$this->getClient()->methodCallAsyncRead(
'channels.toggleSlowMode',
[
'channel' => $this->chatId,
@ -498,7 +498,7 @@ final class GroupMessage extends Message
public function disableSlowMode(): void
{
Assert::true(DialogId::isSupergroupOrChannel($this->chatId));
$this->getClient()->methodCallAsyncWrite(
$this->getClient()->methodCallAsyncRead(
'channels.toggleSlowMode',
[
'channel' => $this->chatId,