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:
parent
91e43d894f
commit
287d204f21
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user