protected function mapSubObjects(string $key, array $data): TelegramTypes
    {
        if (!isset($this->$key)) {
            $this->logger->error(sprintf(
                'The key "%s" does not exist in the class! Maybe a recent Telegram Bot API update? In any way, please '.
                'submit an issue (bug report) at %s with this complete log line',
                $key,
                'https://github.com/unreal4u/telegram-api/issues'
            ), [
                'object' => \get_class($this),
                'data' => $data,
            ]);
        }

        return new ResultArray($data, $this->logger);
    }
protected function mapSubObjects(string $key, array $data): TelegramTypes
    {
        if (!isset($this->$key)) {
            $this->logger->error(sprintf(
                'The key "%s" does not exist in the class! Maybe a recent Telegram Bot API update? In any way, please '.
                'submit an issue (bug report) at %s with this complete log line',
                $key,
                'https://github.com/unreal4u/telegram-api/issues'
            ), [
                'object' => \get_class($this),
                'data' => $data,
            ]);
        }

        return new ResultArray($data, $this->logger);
    }
protected function mapSubObjects ( string $ key , array $ data ) : TelegramTypes { if ( ! isset ( $ this -> $ key ) ) { $ this -> logger -> error ( sprintf ( 'The key "%s" does not exist in the class! Maybe a recent Telegram Bot API update? In any way, please ' . 'submit an issue (bug report) at %s with this complete log line' , $ key , 'https://github.com/unreal4u/telegram-api/issues' ) , [ 'object' => \ get_class ( $ this ) , 'data' => $ data , ] ) ; } return new ResultArray ( $ data , $ this -> logger ) ; }
The default is that we have no subobjects at all, so this function will return nothing

@param string $key
@param array $data

@return TelegramTypes
The default is that we have no subobjects at all so this function will return nothing