1 | <?php |
||
23 | class KeyboardButton extends TelegramTypes |
||
24 | { |
||
25 | /** |
||
26 | * Text of the button. If none of the optional fields are used, it will be sent to the bot as a message when the |
||
27 | * button is pressed |
||
28 | * @var string |
||
29 | */ |
||
30 | public $text = ''; |
||
31 | |||
32 | /** |
||
33 | * Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in |
||
34 | * private chats only |
||
35 | * @var bool |
||
36 | */ |
||
37 | public $request_contact = false; |
||
38 | |||
39 | /** |
||
40 | * Optional. If True, the user's current location will be sent when the button is pressed. Available in private |
||
41 | * chats only |
||
42 | * @var bool |
||
43 | */ |
||
44 | public $request_location = false; |
||
45 | |||
46 | /** |
||
47 | * Optional. If specified, the user will be asked to create a poll and send it to the bot when the button is |
||
48 | * pressed. Available in private chats only |
||
49 | * |
||
50 | * @var KeyboardButtonPollType |
||
51 | */ |
||
52 | public $request_poll = null; |
||
53 | |||
54 | protected function mapSubObjects(string $key, array $data): TelegramTypes |
||
62 | } |
||
63 |