mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-22 16:31:11 +01:00
Update
This commit is contained in:
parent
4caac9bd08
commit
529206f347
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user