Skip to content

Commit c399fc8

Browse files
committed
Use brace notation for objects in YAML configuration to prevent issues like #20
1 parent 7de3128 commit c399fc8

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

config.yaml

+17-13
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@
2727
# Formatters export the JSON output to a different format
2828
# To enable a formatter, uncomment it along with all of its options
2929
# If no formatters are enabled, only JSON files are produced
30-
formatters:
31-
# plaintext:
30+
formatters: {
31+
# plaintext: {
3232
# date_format: '%Y-%m-%d %H:%M:%S'
33-
# bare:
34-
# pisg:
35-
# html:
36-
# paginate: 1500 # messages per page
37-
# use_utc_time: false
38-
# timestamps_every: 50 # messages
33+
# },
34+
# bare: {},
35+
# pisg: {},
36+
# html: {
37+
# paginate: 1500, # messages per page
38+
# use_utc_time: false,
39+
# timestamps_every: 50, # messages
40+
# },
41+
}
3942

4043
# Target directory for the backup files
4144
# It his is a relative path it will be relative to the script's directory
@@ -47,11 +50,12 @@
4750
# At the time of writing, telegram-cli does not properly detect audio/video
4851
# These will be recognized as documents instead
4952
# Stickers are also considered documents
50-
download_media:
51-
photo: false
52-
document: false
53-
audio: false
54-
video: false
53+
download_media: {
54+
photo: false,
55+
document: false,
56+
audio: false,
57+
video: false,
58+
}
5559

5660
# False to reference downloaded files in the telegram-cli cache
5761
# True to copy downloaded media to a dedicated directory per dialog

0 commit comments

Comments
 (0)