mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-22 13:53:04 +01:00
Improve bot
This commit is contained in:
parent
82917126e5
commit
6cf245dc8f
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 87436d9a04314564c7210514a111041f1fa4fb6e
|
||||
Subproject commit 54835c5b71a119041f6639d69262a81b6b7ca310
|
@ -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";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user