-
Notifications
You must be signed in to change notification settings - Fork 172
/
ReplyKeyboardMarkup.php
44 lines (38 loc) · 1.29 KB
/
ReplyKeyboardMarkup.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
declare(strict_types = 1);
namespace unreal4u\Telegram\Types;
use unreal4u\Abstracts\KeyboardMethods;
/**
* This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).
*
* Objects defined as-is january 2016
*
* @see https://core.telegram.org/bots/api#replykeyboardmarkup
* @see https://core.telegram.org/bots#keyboards
*/
class ReplyKeyboardMarkup extends KeyboardMethods
{
/**
* Array of button rows, each represented by an Array of Strings
*
* Example:
*
* $keyboard = [['a', 'b',], ['c', 'd', 'e',], ['f', 'g', ],
* Will represent three rows displaying a,b in the first, c, d and e in the second and f and g in the third.
*
* @var array
*/
public $keyboard = [];
/**
* Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if
* there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same
* height as the app's standard keyboard.
* @var bool
*/
public $resize_keyboard = false;
/**
* Optional. Requests clients to hide the keyboard as soon as it's been used. Defaults to false.
* @var bool
*/
public $one_time_keyboard = false;
}