mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-21 10:32:03 +00:00
25 lines
671 B
PHP
25 lines
671 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace BushlanovDev\MaxMessengerBot\Models\Attachments\Buttons\Reply;
|
|
|
|
use BushlanovDev\MaxMessengerBot\Enums\Intent;
|
|
use BushlanovDev\MaxMessengerBot\Enums\ReplyButtonType;
|
|
|
|
final readonly class SendMessageButton extends AbstractReplyButton
|
|
{
|
|
/**
|
|
* @param string $text Visible text of the button.
|
|
* @param string|null $payload Button payload.
|
|
* @param Intent $intent Intent of button.
|
|
*/
|
|
public function __construct(
|
|
string $text,
|
|
public ?string $payload = null,
|
|
public Intent $intent = Intent::Default,
|
|
) {
|
|
parent::__construct(ReplyButtonType::Message, $text);
|
|
}
|
|
}
|