src/BotManager.php
public function getLoopInterval(): int
    {
        $interval_time = $this->params->getScriptParam('i');

        if (null === $interval_time || (\is_string($interval_time) && '' === trim($interval_time))) {
            return 2;
        }

        // Minimum interval is 1 second.
        return max(1, (int) $interval_time);
    }
public function getLoopInterval(): int
    {
        $interval_time = $this->params->getScriptParam('i');

        if (null === $interval_time || (\is_string($interval_time) && '' === trim($interval_time))) {
            return 2;
        }

        // Minimum interval is 1 second.
        return max(1, (int) $interval_time);
    }
public function getLoopInterval ( ) : int { $ interval_time = $ this -> params -> getScriptParam ( 'i' ) ; if ( null === $ interval_time || ( \ is_string ( $ interval_time ) && '' === trim ( $ interval_time ) ) ) { return 2 ; } // Minimum interval is 1 second. return max ( 1 , ( int ) $ interval_time ) ; }
Get the number of seconds the script should wait after each getUpdates request.

@return int
Get the number of seconds the script should wait after each getUpdates request .