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