-
Notifications
You must be signed in to change notification settings - Fork 104
/
mirror.config.yml-example
44 lines (40 loc) · 1.14 KB
/
mirror.config.yml-example
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
# (Optional) Global filters, will be applied in order
filters:
- ForwardFormatFilter: # Filter name under telemirror/messagefilters.py
# Filters arguments
format: "{message_text}\n\nForwarded from [{channel_name}]({message_link})"
- EmptyMessageFilter
- UrlMessageFilter:
blacklist: !!set
? t.me
- SkipUrlFilter:
skip_mention: false
# (Optional) Global settings
disable_edit: true
disable_delete: true
mode: copy # or forward
# (Required) Mirror directions
directions:
- from: [-1001, -1002, -1003]
to: [-100203]
- from: [-1000#3] # forwards from topic to topic
to: [-1001#4]
- from: [-100226]
to: [-1006, -1008]
# Overwrite global settings
disable_edit: false
disable_delete: false
mode: forward
# Overwrite global filters
filters:
- UrlMessageFilter:
blacklist: !!set
? t.me
- KeywordReplaceFilter:
keywords:
"google.com": "bing.com"
regex: false # treat keywords as plain text
- SkipWithKeywordsFilter:
keywords: !!set
? "stopword"
regex: true # treat keywords as regex expr