| 1 | <?php |
||
| 19 | class EchoCommand extends UserCommand |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $name = 'echo'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $description = 'Show text'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $usage = '/echo <text>'; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | protected $version = '1.1.0'; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Command execute method |
||
| 43 | * |
||
| 44 | * @return mixed |
||
| 45 | * @throws \Longman\TelegramBot\Exception\TelegramException |
||
| 46 | */ |
||
| 47 | public function execute() |
||
| 64 | } |
||
| 65 |