rainbowBot/handlers/Tpdne.php
Mattia Mascarello 88ce5972b4 Major revision 2
2023-02-07 01:27:52 +01:00

27 lines
717 B
PHP

<?php
class Tpdne extends Command
{
public static function exposedCommands(): array{
return [];
}
public function __construct(\TelegramBot\Api\Types\Message $message, \TelegramBot\Api\Client $bot)
{
parent::__construct($message, $bot);
}
public function execute(): void
{
$this->bot->sendChatAction($this->message->getChat()->getId(), "upload_photo");
$this->bot->sendPhoto(
$this->message->getChat()->getId(),
"https://thispersondoesnotexist.com/image?v=" . bin2hex(random_bytes(10)) . time(),
null,
$this->message->getMessageId(),
null,
null,
"HTML"
);
}
}