Added MessageStat & Attachments

This commit is contained in:
Alex
2025-08-04 18:48:51 +03:00
parent c5d55a5c0f
commit 728536f064
41 changed files with 1210 additions and 95 deletions
+2
View File
@@ -16,6 +16,7 @@ final readonly class Message extends AbstractModel
* @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.
* @param MessageStat|null $stat Message statistics. Available only for channels.
*/
public function __construct(
public int $timestamp,
@@ -24,6 +25,7 @@ final readonly class Message extends AbstractModel
public ?User $sender,
public ?string $url,
public ?LinkedMessage $link,
public ?MessageStat $stat,
) {
}
}