mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-20 18:44:38 +00:00
24 lines
520 B
PHP
24 lines
520 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace BushlanovDev\MaxMessengerBot\Models\Attachments\Payloads;
|
|
|
|
use BushlanovDev\MaxMessengerBot\Models\AbstractModel;
|
|
|
|
/**
|
|
* Payload for a file attachment.
|
|
*/
|
|
final readonly class FileAttachmentPayload extends AbstractModel
|
|
{
|
|
/**
|
|
* @param string $url Media attachment URL.
|
|
* @param string $token Token to reuse the same attachment in other messages.
|
|
*/
|
|
public function __construct(
|
|
public string $url,
|
|
public string $token,
|
|
) {
|
|
}
|
|
}
|