mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-23 08:23:24 +00:00
22 lines
487 B
PHP
22 lines
487 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace BushlanovDev\MaxMessengerBot\Models\Attachments;
|
|
|
|
use BushlanovDev\MaxMessengerBot\Enums\AttachmentType;
|
|
|
|
/**
|
|
* Represents an attachment containing a payload from a SendMessageButton.
|
|
*/
|
|
final readonly class DataAttachment extends AbstractAttachment
|
|
{
|
|
/**
|
|
* @param string $data The payload from the button.
|
|
*/
|
|
public function __construct(public string $data)
|
|
{
|
|
parent::__construct(AttachmentType::Data);
|
|
}
|
|
}
|