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
+2 -2
View File
@@ -13,13 +13,13 @@ final readonly class Callback extends AbstractModel
* @param int $timestamp Unix-time when user pressed the button.
* @param string $callbackId Identifier of the callback, unique for the message.
* @param string $payload Payload from the pressed button.
* @param User $user User who pressed the button.
* @param UserWithPhoto $user User who pressed the button.
*/
public function __construct(
public int $timestamp,
public string $callbackId,
public string $payload,
public User $user,
public UserWithPhoto $user,
) {
}
}