1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 05:54:41 +01:00

Update ChannelMessage.php

This commit is contained in:
Daniil Gentili 2023-08-30 14:47:44 +02:00 committed by GitHub
parent 349cdafdaf
commit 6694f5e5a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,10 +43,8 @@ final class ChannelMessage extends Message
/**
* Disable message signatures in channels
*
* @return boolean
*/
public function disableSignatures(): bool
public function disableSignatures(): void
{
$this->getClient()->methodCallAsyncRead(
'channels.toggleSignatures',
@ -55,15 +53,12 @@ final class ChannelMessage extends Message
'enabled' => false,
]
);
return true;
}
/**
* Enable message signatures in channels
*
* @return boolean
*/
public function enableSignatures(): bool
public function enableSignatures(): void
{
$this->getClient()->methodCallAsyncRead(
'channels.toggleSignatures',
@ -72,7 +67,6 @@ final class ChannelMessage extends Message
'enabled' => true,
]
);
return true;
}
/**