mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 07:31:11 +01:00
Fix delete()
This commit is contained in:
parent
637219438d
commit
a13d16c7ea
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit ecb8774a1acc96a62a57a60baf3569283216432b
|
||||
Subproject commit 2bbdf1b074a607c666dd7f9fd71cc19a137deae2
|
2
schemas
2
schemas
@ -1 +1 @@
|
||||
Subproject commit 5bac791635b33c1c978bacad22f65c0f11633eb6
|
||||
Subproject commit 2185331bb36565039fd1bcbe14ee7c25eeab2f51
|
@ -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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user