src/BotManager.php
public function handleCron(): self
    {
        $groups = explode(',', $this->params->getScriptParam('g', 'default'));

        $commands = [];
        foreach ($groups as $group) {
            $commands[] = $this->params->getBotParam('cron.groups.' . $group, []);
        }
        $this->telegram->runCommands(array_merge(...$commands));

        return $this;
    }
public function handleCron(): self
    {
        $groups = explode(',', $this->params->getScriptParam('g', 'default'));

        $commands = [];
        foreach ($groups as $group) {
            $commands[] = $this->params->getBotParam('cron.groups.' . $group, []);
        }
        $this->telegram->runCommands(array_merge(...$commands));

        return $this;
    }
public function handleCron ( ) : self { $ groups = explode ( ',' , $ this -> params -> getScriptParam ( 'g' , 'default' ) ) ; $ commands = [ ] ; foreach ( $ groups as $ group ) { $ commands [ ] = $ this -> params -> getBotParam ( 'cron.groups.' . $ group , [ ] ) ; } $ this -> telegram -> runCommands ( array_merge ( ... $ commands ) ) ; return $ this ; }
Handle cron.

@return \TelegramBot\TelegramBotManager\BotManager
@throws \Longman\TelegramBot\Exception\TelegramException
Handle cron .