SendMessage method add sender

This commit is contained in:
Alex
2025-07-14 19:01:42 +03:00
parent 1ca860604c
commit 7a8a096b85
8 changed files with 142 additions and 3 deletions
+4
View File
@@ -13,11 +13,15 @@ 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 Sender|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.
*/
public function __construct(
public int $timestamp,
public MessageBody $body,
public Recipient $recipient,
public ?Sender $sender,
public ?string $url,
) {
}
}