mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-21 11:05:38 +00:00
22 lines
560 B
PHP
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);
|
|
}
|
|
}
|