Total Complexity | 2 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
19 | class SetChatMenuButtonMethod implements SetMethodAliasInterface |
||
20 | { |
||
21 | use FillFromArrayTrait; |
||
22 | |||
23 | /** |
||
24 | * Unique identifier for the target private chat. If not specified, default bot's menu |
||
25 | * button will be changed |
||
26 | * |
||
27 | * @var integer|null |
||
28 | */ |
||
29 | public $chatId; |
||
30 | |||
31 | /** |
||
32 | * Optional. A JSON-serialized object for the bot's new menu button. |
||
33 | * Defaults to 'default' type |
||
34 | * |
||
35 | * @var MenuButtonType|null |
||
36 | */ |
||
37 | public $menuButton; |
||
38 | |||
39 | |||
40 | /** |
||
41 | * SetChatMenuButtonMethod constructor. |
||
42 | * |
||
43 | * @param array|null $data |
||
44 | * |
||
45 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
46 | * |
||
47 | * @return SetChatMenuButtonMethod |
||
48 | */ |
||
49 | public static function create(array $data = null): SetChatMenuButtonMethod |
||
59 |