1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 10:59:02 +01:00

Update help

This commit is contained in:
Daniil Gentili 2023-08-19 17:44:12 +02:00
parent 54d14c7b91
commit 2537ef5bcd
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -7,6 +7,7 @@ use danog\MadelineProto\EventHandler\SimpleFilter\HasAudio;
use danog\MadelineProto\EventHandler\SimpleFilter\HasDocument; use danog\MadelineProto\EventHandler\SimpleFilter\HasDocument;
use danog\MadelineProto\EventHandler\SimpleFilter\Incoming; use danog\MadelineProto\EventHandler\SimpleFilter\Incoming;
use danog\MadelineProto\Ogg; use danog\MadelineProto\Ogg;
use danog\MadelineProto\ParseMode;
use danog\MadelineProto\SimpleEventHandler; use danog\MadelineProto\SimpleEventHandler;
use function Amp\async; use function Amp\async;
@ -28,7 +29,13 @@ class MyEventHandler extends SimpleEventHandler
#[FilterCommand('start')] #[FilterCommand('start')]
public function startCmd(Incoming&Message $message): void public function startCmd(Incoming&Message $message): void
{ {
$message->reply("This bot can be used to convert files to be played by a @MadelineProto Telegram webradio!\n\nSee https://docs.madelineproto.xyz/docs/CALLS.html for more info, and call @magicalcrazypony to hear some nice tunes!\n\nSend me an audio file to start.\n\nPowered by @MadelineProto."); $message->reply(
message: "This bot can be used to convert files to be played by a @MadelineProto Telegram webradio!".
"\n\nSee https://docs.madelineproto.xyz/docs/CALLS.html for more info, and call @magicalcrazypony to hear some nice tunes!".
"\n\nSend me an audio file to start.".
"\n\nPowered by @MadelineProto, [source code](https://github.com/danog/MadelineProto/blob/v8/examples/libtgvoipbot.php).",
parseMode: ParseMode::MARKDOWN
);
} }
#[Handler] #[Handler]
public function convertCmd((Incoming&Message&HasAudio)|(Incoming&Message&HasDocument) $message): void public function convertCmd((Incoming&Message&HasAudio)|(Incoming&Message&HasDocument) $message): void