public function getBotID() : int
    {
        // If it is not valid
        if (!isset($this->_bot_id) || $this->_bot_id == 0) {
            // get it again
            $this->_bot_id = ($this->getMe())['id'];
        }

        return $this->_bot_id ?? 0;
    }
public function getBotID() : int
    {
        // If it is not valid
        if (!isset($this->_bot_id) || $this->_bot_id == 0) {
            // get it again
            $this->_bot_id = ($this->getMe())['id'];
        }

        return $this->_bot_id ?? 0;
    }
public function getBotID ( ) : int { // If it is not valid if ( ! isset ( $ this -> _bot_id ) || $ this -> _bot_id == 0 ) { // get it again $ this -> _bot_id = ( $ this -> getMe ( ) ) [ 'id' ] ; } return $ this -> _bot_id ?? 0 ; }
\brief Get bot ID using `getMe` method.
@return int Bot id, 0 on errors.
\ brief Get bot ID using getMe method .