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