1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 16:31:11 +01:00
This commit is contained in:
Daniil Gentili 2023-09-02 15:22:08 +02:00
parent 4caac9bd08
commit 529206f347
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -184,9 +184,9 @@ abstract class Message extends AbstractMessage
* @param bool $pmOneside Whether the message should only be pinned on the local side of a one-to-one chat
* @param bool $silent Pin the message silently, without triggering a notification
*/
public function pin(bool $pmOneside = false, bool $silent = false): ?AbstractMessage
public function pin(bool $pmOneside = false, bool $silent = false): void
{
$result = $this->getClient()->methodCallAsyncRead(
$this->getClient()->methodCallAsyncRead(
'messages.updatePinnedMessage',
[
'peer' => $this->chatId,
@ -196,7 +196,6 @@ abstract class Message extends AbstractMessage
'unpin' => false
]
);
return $this->getClient()->wrapMessage($this->getClient()->extractMessage($result));
}
/**