1 | <?php |
||
20 | class GenericmessageCommand extends SystemCommand |
||
21 | { |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $name = 'Genericmessage'; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $description = 'Handle generic message'; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $version = '1.1.0'; |
||
36 | |||
37 | /** |
||
38 | * @var bool |
||
39 | */ |
||
40 | protected $need_mysql = true; |
||
41 | |||
42 | /** |
||
43 | * Execution if MySQL is required but not available |
||
44 | * |
||
45 | * @return \Longman\TelegramBot\Entities\ServerResponse |
||
46 | */ |
||
47 | public function executeNoDb() |
||
52 | |||
53 | /** |
||
54 | * Execute command |
||
55 | * |
||
56 | * @return \Longman\TelegramBot\Entities\ServerResponse |
||
57 | * @throws \Longman\TelegramBot\Exception\TelegramException |
||
58 | */ |
||
59 | public function execute() |
||
73 | } |
||
74 |