1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 13:53:04 +01:00

Improve bot

This commit is contained in:
Daniil Gentili 2023-07-21 19:43:59 +02:00
parent 82917126e5
commit 6cf245dc8f
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 3 additions and 3 deletions

2
docs

@ -1 +1 @@
Subproject commit 87436d9a04314564c7210514a111041f1fa4fb6e
Subproject commit 54835c5b71a119041f6639d69262a81b6b7ca310

View File

@ -180,7 +180,7 @@ class MyEventHandler extends SimpleEventHandler
public function dlStoriesCommand(Message $message): void
{
if (!$message->commandArgs) {
$message->reply("You must specify the @nickname or the Telegram ID of a user to download their stories!");
$message->reply("You must specify the @username or the Telegram ID of a user to download their stories!");
return;
}
@ -194,7 +194,7 @@ class MyEventHandler extends SimpleEventHandler
foreach ($stories as $story) {
$cur = "- ID {$story['id']}, posted ".date(DATE_RFC850, $story['date']);
if (isset($story['caption'])) {
$cur .= ', "'.self::markdownEscape($story['caption']).'": ';
$cur .= ', "'.self::markdownEscape($story['caption']).'"';
}
$result .= "$cur; [click here to download »]({$this->getDownloadLink($story)})\n";
}