code: def get_config_path(module_id: str = None, ext: str = 'yaml') -> Path:
      
      if module_id:
          config_path = get_data_path(module_id)
      else:
          profile = coordinator.profile
          config_path = get_base_path() / 'profiles' / profile
      if not config_path.exists():
          config_path.mkdir(parents=True)
      return config_path / "config.{}".format(ext)
docs: Get path for configuration file. Defaulted to
      ``~/.ehforwarderbot/profiles/profile_name/channel_id/config.yaml``.
      
      This method creates the queried path if not existing. The config file will
      not be created, however.
      
      Args:
          module_id (str): Module ID.
          ext (Optional[Str]): Extension name of the config file.
              Defaulted to ``"yaml"``.
  
      Returns:
          The path to the configuration file.