1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 07:31:11 +01:00

Fix delete()

This commit is contained in:
Daniil Gentili 2023-07-20 06:07:47 +02:00
parent 637219438d
commit a13d16c7ea
3 changed files with 3 additions and 3 deletions

2
docs

@ -1 +1 @@
Subproject commit ecb8774a1acc96a62a57a60baf3569283216432b
Subproject commit 2bbdf1b074a607c666dd7f9fd71cc19a137deae2

@ -1 +1 @@
Subproject commit 5bac791635b33c1c978bacad22f65c0f11633eb6
Subproject commit 2185331bb36565039fd1bcbe14ee7c25eeab2f51

View File

@ -132,7 +132,7 @@ abstract class AbstractMessage extends Update implements SimpleFilters
public function delete(bool $revoke = true): void
{
$this->API->methodCallAsyncRead(
API::isSupergroup($this->senderId) ? 'channels.deleteMessages' : 'messages.deleteMessages',
API::isSupergroup($this->chatId) ? 'channels.deleteMessages' : 'messages.deleteMessages',
[
'channel' => $this->chatId,
'id' => [$this->id],