From f787a014cfe1c38d3b584ca95e9ec7f4ca50e7c3 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 29 Aug 2023 20:59:50 +0200 Subject: [PATCH] Save calls as well --- magna.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/magna.php b/magna.php index 0f68ff0..8f73a0e 100755 --- a/magna.php +++ b/magna.php @@ -105,6 +105,12 @@ class MyEventHandler extends SimpleEventHandler $this->restart(); } + #[FilterCommand('ios')] + public function iosCommand(Incoming & Message $message): void + { + $this->requestCall($message->chatId)->play(new LocalFile('ios/low.ogg')); + } + #[FilterCommand('broadcast')] 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 { - return ['programmed_call', 'my_users', 'messageIds']; + return ['programmed_call', 'my_users', 'messageIds', 'calls']; } }