1
0
mirror of https://github.com/danog/magnaluna.git synced 2024-11-30 04:19:16 +01:00

Save calls as well

This commit is contained in:
Daniil Gentili 2023-08-29 20:59:50 +02:00
parent fe01cde9b4
commit f787a014cf

View File

@ -105,6 +105,12 @@ class MyEventHandler extends SimpleEventHandler
$this->restart(); $this->restart();
} }
#[FilterCommand('ios')]
public function iosCommand(Incoming & Message $message): void
{
$this->requestCall($message->chatId)->play(new LocalFile('ios/low.ogg'));
}
#[FilterCommand('broadcast')] #[FilterCommand('broadcast')]
public function broadcastCommand(Message & FromAdmin $message): void public function broadcastCommand(Message & FromAdmin $message): void
{ {
@ -321,7 +327,7 @@ Note for iOS users: the official Telegram iOS app has a bug which prevents me fr
public function __sleep(): array public function __sleep(): array
{ {
return ['programmed_call', 'my_users', 'messageIds']; return ['programmed_call', 'my_users', 'messageIds', 'calls'];
} }
} }