-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
77 lines (63 loc) · 2.97 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
# Telegram API ID and hash from the Telegram dev portal.
# Signup for it here: https://my.telegram.org/auth?to=apps
#api_id: "11111111"
#api_hash: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
# set via env:
# API_ID=11111111 API_HASH=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa tg-archive
# Telegram channel / group name or your group username or your group id(a negative number) to import.
# Your user account that was used to creat the API ID should
# be a member of this group.
group: "iceagefarmer"
# Avatars and media will be downloaded into media_dir.
download_media: True
download_avatars: True
avatar_size: [64, 64] # Width, Height.
media_dir: "media"
# The list of media/file mime types (in lowercase) to download.
# eg: ["image/gif", "image/jpeg", "image/png", "video/mp4", "application/zip", "application/pdf"]
# If left empty, files of all types are downloaded.
media_mime_types: []
# Takeout mode allows you to fetch messages at a higher rate than the standard mode.
# It is the method used in the desktop client to export data.
# You can use a larger fetch_batch_size. Set this as False to use the standard mode.
use_takeout: False
# These should be configured carefully to not get rate limited by Telegram.
# Number of messages to fetch in one batch.
# For takeout mode (use_takeout: True), this value can be greater.
#fetch_batch_size: 2000
fetch_batch_size: 1000
# Seconds to wait after fetching one full batch and moving on to the next one.
#fetch_wait: 5
fetch_wait: 10
# Max number of messages to fetch across all batches before the stopping.
# This should be greater than fetch_batch_size.
# Set to 0 to never stop until all messages have been fetched.
fetch_limit: 0
publish_dir: "site"
static_dir: "static"
per_page: 500
show_day_index: True
show_post_count_per_day: False
show_post_count_per_month: False
# URL to link Telegram group names and usernames.
telegram_url: "https://t.me/{id}"
# IMPORTANT: Telegram shows the full name on your (API key holder's)
# phonebook for users who are in your phonebook.
show_sender_fullname: False
publish_rss_feed: True
rss_feed_entries: 100 # Show Latest N messages in the RSS feed.
# Root URL where the site will be hosted. No trailing slash.
site_url: "https://milahu.github.io/iceagefarmer"
site_logo: "media/avatar_1392849104.jpg"
site_favicon: "media/avatar_1392849104.jpg"
extra_style: 'div.logo > a { display: block; height: 64px; width: 64px; border-radius: 100%; position: relative; overflow: hidden; }'
site_name: "{group} Telegram archive"
site_description: '<br>Telegram archive<br><div class="github-url" style="display:inline">(<a href="https://github.com/milahu/iceagefarmer">Github</a>)</div>'
meta_description: "{group} Telegram archive"
page_title: "{group} Telegram archive on {date} page {page}"
# options for the jinja2 template engine
# https://jinja.palletsprojects.com/en/latest/api/#jinja2.Environment
template_options:
trim_blocks: True # remove first newline after block template tags
lstrip_blocks: True # remove indent before block template tags