fix #1 TypeError Api::sendUserMessage после отправки сообщения

Added PhotoAttachmentRequestPayloadTest
This commit is contained in:
Alex
2025-08-04 19:43:37 +03:00
parent 728536f064
commit 32e393e044
4 changed files with 116 additions and 8 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ final readonly class Message extends AbstractModel
{
/**
* @param int $timestamp Unix-time when message was created.
* @param MessageBody $body Body of created message. Text + attachments.
* @param Recipient $recipient Message recipient. Could be user or chat.
* @param MessageBody|null $body Body of created message. Text + attachments.
* @param User|null $sender User who sent this message. Can be null if message has been posted on behalf of a channel.
* @param string|null $url Message public URL. Can be null for dialogs or non-public chats/channels.
* @param LinkedMessage|null $link Forwarded or replied message.
@@ -20,8 +20,8 @@ final readonly class Message extends AbstractModel
*/
public function __construct(
public int $timestamp,
public MessageBody $body,
public Recipient $recipient,
public ?MessageBody $body,
public ?User $sender,
public ?string $url,
public ?LinkedMessage $link,