| @@ 8-17 (lines=10) @@ | ||
| 5 | use Teebot\Command\AbstractCommand; |
|
| 6 | use Teebot\Method\SendMessage; |
|
| 7 | ||
| 8 | class One extends AbstractCommand |
|
| 9 | { |
|
| 10 | public function run() |
|
| 11 | { |
|
| 12 | $sendMessage = (new SendMessage()) |
|
| 13 | ->setText('One triggered! args: "'.$this->getArgs().'"'); |
|
| 14 | ||
| 15 | $this->reply($sendMessage); |
|
| 16 | } |
|
| 17 | } |
|
| 18 | ||
| @@ 8-17 (lines=10) @@ | ||
| 5 | use Teebot\Command\AbstractCommand; |
|
| 6 | use Teebot\Method\SendMessage; |
|
| 7 | ||
| 8 | class Two extends AbstractCommand |
|
| 9 | { |
|
| 10 | public function run() |
|
| 11 | { |
|
| 12 | $sendMessage = (new SendMessage()) |
|
| 13 | ->setText('Two triggered! args: "'.$this->getArgs().'"'); |
|
| 14 | ||
| 15 | $this->reply($sendMessage); |
|
| 16 | } |
|
| 17 | } |
|
| 18 | ||