Files
max-bot-api-client-php/src/Models/Attachments/Buttons/Inline/RequestContactButton.php
T
2025-08-02 09:24:11 +03:00

22 lines
560 B
PHP

<?php
declare(strict_types=1);
namespace BushlanovDev\MaxMessengerBot\Models\Attachments\Buttons\Inline;
use BushlanovDev\MaxMessengerBot\Enums\InlineButtonType;
/**
* Requests the user permission to access contact information (phone number, short link, email).
*/
final readonly class RequestContactButton extends AbstractInlineButton
{
/**
* @param string $text Visible button text (1 to 128 characters).
*/
public function __construct(string $text)
{
parent::__construct(InlineButtonType::RequestContact, $text);
}
}