1
0
mirror of https://github.com/danog/magnaluna.git synced 2024-11-26 19:44:46 +01:00

Improve docs

This commit is contained in:
Daniil Gentili 2023-08-29 20:09:12 +02:00
parent 7e4ffccf36
commit fe01cde9b4

View File

@ -167,7 +167,7 @@ class MyEventHandler extends SimpleEventHandler
}
try {
$message = 'Total running calls: '.count($this->calls).PHP_EOL.PHP_EOL;
$message .= PHP_EOL.PHP_EOL.PHP_EOL;
$message .= "Send /skip to skip the current song.".PHP_EOL.PHP_EOL.PHP_EOL;
$message .= "Emojis: ".implode('', $call->getVisualization() ?? []);
$this->messages->editMessage(['id' => $this->messageIds[$call->otherID], 'peer' => $user, 'message' => $message]);
@ -309,7 +309,7 @@ Note for iOS users: the official Telegram iOS app has a bug which prevents me fr
}
try {
$message = 'Total running calls: '.(count($this->calls)+1).PHP_EOL.PHP_EOL;
$message .= PHP_EOL.PHP_EOL.PHP_EOL;
$message .= "Send /skip to skip the current song.".PHP_EOL.PHP_EOL.PHP_EOL;
$message .= "Emojis: ".implode('', $call->getVisualization() ?? []);
$this->messageIds[$call->otherID] = $this->sendMessage(peer: $call->otherID, message: $message)->id;