mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-22 01:42:04 +00:00
24 lines
713 B
PHP
24 lines
713 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace BushlanovDev\MaxMessengerBot\Models\Attachments\Requests;
|
|
|
|
use BushlanovDev\MaxMessengerBot\Enums\AttachmentType;
|
|
use BushlanovDev\MaxMessengerBot\Models\Attachments\Buttons\Inline\AbstractInlineButton;
|
|
use BushlanovDev\MaxMessengerBot\Models\Attachments\Payloads\InlineKeyboardAttachmentRequestPayload;
|
|
|
|
final readonly class InlineKeyboardAttachmentRequest extends AbstractAttachmentRequest
|
|
{
|
|
/**
|
|
* @param AbstractInlineButton[][] $buttons
|
|
*/
|
|
public function __construct(array $buttons)
|
|
{
|
|
parent::__construct(
|
|
AttachmentType::InlineKeyboard,
|
|
new InlineKeyboardAttachmentRequestPayload($buttons),
|
|
);
|
|
}
|
|
}
|