Replacing the User object with UserWithPhoto #22

This commit is contained in:
Alex
2025-12-19 13:30:36 +03:00
parent 3c6da8e8f6
commit 67463a6b64
44 changed files with 168 additions and 134 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ declare(strict_types=1);
namespace BushlanovDev\MaxMessengerBot\Models\Updates;
use BushlanovDev\MaxMessengerBot\Enums\UpdateType;
use BushlanovDev\MaxMessengerBot\Models\User;
use BushlanovDev\MaxMessengerBot\Models\UserWithPhoto;
/**
* Event clearing dialog history.
@@ -15,13 +15,13 @@ final readonly class DialogClearedUpdate extends AbstractUpdate
/**
* @param int $timestamp Unix-time when event has occurred.
* @param int $chatId Dialog identifier where event has occurred.
* @param User $user User pressed the 'Start' button.
* @param UserWithPhoto $user User pressed the 'Start' button.
* @param string|null $userLocale Current user locale in IETF BCP 47 format.
*/
public function __construct(
int $timestamp,
public int $chatId,
public User $user,
public UserWithPhoto $user,
public ?string $userLocale,
) {
parent::__construct(UpdateType::DialogCleared, $timestamp);