mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-25 05:56:50 +00:00
Replacing the User object with UserWithPhoto #22
This commit is contained in:
@@ -9,7 +9,7 @@ use BushlanovDev\MaxMessengerBot\Attributes\ArrayOf;
|
||||
/**
|
||||
* Information about the current bot.
|
||||
*/
|
||||
final readonly class BotInfo extends AbstractModel
|
||||
final readonly class BotInfo extends AbstractUser
|
||||
{
|
||||
/**
|
||||
* @param int $userId ID user.
|
||||
@@ -24,17 +24,18 @@ final readonly class BotInfo extends AbstractModel
|
||||
* @param BotCommand[]|null $commands Commands supported by the bot (up to 32 elements).
|
||||
*/
|
||||
public function __construct(
|
||||
public int $userId,
|
||||
public string $firstName,
|
||||
public ?string $lastName,
|
||||
public ?string $username,
|
||||
public bool $isBot,
|
||||
public int $lastActivityTime,
|
||||
int $userId,
|
||||
string $firstName,
|
||||
?string $lastName,
|
||||
?string $username,
|
||||
bool $isBot,
|
||||
int $lastActivityTime,
|
||||
public ?string $description,
|
||||
public ?string $avatarUrl,
|
||||
public ?string $fullAvatarUrl,
|
||||
#[ArrayOf(BotCommand::class)]
|
||||
public ?array $commands,
|
||||
) {
|
||||
parent::__construct($userId, $firstName, $lastName, $username, $isBot, $lastActivityTime);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user