mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-19 12:23:00 +00:00
24 lines
621 B
PHP
24 lines
621 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace BushlanovDev\MaxMessengerBot\Models\Attachments;
|
|
|
|
use BushlanovDev\MaxMessengerBot\Enums\AttachmentType;
|
|
use BushlanovDev\MaxMessengerBot\Models\Attachments\Payloads\ShareAttachmentRequestPayload;
|
|
|
|
/**
|
|
* Represents a share (URL preview) attachment.
|
|
*/
|
|
final readonly class ShareAttachment extends AbstractAttachment
|
|
{
|
|
public function __construct(
|
|
public ShareAttachmentRequestPayload $payload,
|
|
public ?string $title,
|
|
public ?string $description,
|
|
public ?string $imageUrl,
|
|
) {
|
|
parent::__construct(AttachmentType::Share);
|
|
}
|
|
}
|