• Edit a folder with given modification

    Parameters

    • client: ITelegramClient
    • params: {
          folder: string | number | RawDialogFilter;
          modification: Partial<Omit<RawDialogFilter, "_" | "id">>;
      }
      • folder: string | number | RawDialogFilter

        Folder, folder ID or name. Note that passing an ID or name will require re-fetching all folders, and passing name might affect not the right folder if you have multiple with the same name.

      • modification: Partial<Omit<RawDialogFilter, "_" | "id">>

        Modification to be applied to this folder

    Returns Promise<tl.RawDialogFilter>

    Modified folder