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

27 lines
744 B
PHP

<?php
declare(strict_types=1);
namespace BushlanovDev\MaxMessengerBot\Models\Attachments\Buttons\Inline;
use BushlanovDev\MaxMessengerBot\Enums\InlineButtonType;
/**
* After pressing this type of button client sends new message with attachment of current user geo location.
*/
final readonly class RequestGeoLocationButton extends AbstractInlineButton
{
public bool $quick;
/**
* @param string $text Visible button text (1 to 128 characters).
* @param bool $quick If true, sends location without asking user's confirmation.
*/
public function __construct(string $text, bool $quick = false)
{
parent::__construct(InlineButtonType::RequestGeoLocation, $text);
$this->quick = $quick;
}
}