Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class SendMessage extends AbstractConsoleCommand |
||
13 | { |
||
14 | protected static $defaultName = 'tg:client:message'; |
||
15 | |||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | protected function configure() |
||
20 | { |
||
21 | $this->addArgument('peer', InputArgument::REQUIRED, 'Chat or user name from your dialog list.'); |
||
22 | $this->addArgument('message', InputArgument::REQUIRED, 'Message to send in Markdown format.'); |
||
23 | $this->setDescription('Send message to user or chat.'); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | protected function execute(InputInterface $input, OutputInterface $output) |
||
34 | ); |
||
35 | } |
||
36 | |||
37 | protected function getMessageSender(): MessageSender |
||
42 |