mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-20 08:33:02 +00:00
22 lines
573 B
PHP
22 lines
573 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace BushlanovDev\MaxMessengerBot\Models\Attachments\Buttons\Reply;
|
|
|
|
use BushlanovDev\MaxMessengerBot\Enums\ReplyButtonType;
|
|
|
|
final readonly class SendGeoLocationButton extends AbstractReplyButton
|
|
{
|
|
/**
|
|
* @param string $text Visible text of the button.
|
|
* @param bool $quick If `true`, sends location without asking user's confirmation.
|
|
*/
|
|
public function __construct(
|
|
string $text,
|
|
public bool $quick = false,
|
|
) {
|
|
parent::__construct(ReplyButtonType::UserGeoLocation, $text);
|
|
}
|
|
}
|