-
Notifications
You must be signed in to change notification settings - Fork 105
/
.env-example
7 lines (7 loc) · 1.48 KB
/
.env-example
1
2
3
4
5
6
7
API_ID=test
API_HASH=test
SESSION_STRING=test
USE_MEMORY_DB=true
CHAT_MAPPING=[-100999999,-100999999,-100999999:-1009999999];
# (Optional) YAML filter configuration thru single-lined env string (new lines (\n) should be replaced to \\n), other filter settings from env will be ignored
YAML_CONFIG_ENV=\n# (Optional) Global filters, will be applied in order\nfilters:\n - ForwardFormatFilter: # Filter name under telemirror/messagefilters.py\n # Filters arguments\n format: "{message_text}\n\nForwarded from [{channel_name}]({message_link})"\n - EmptyMessageFilter\n - UrlMessageFilter:\n blacklist: !!set\n ? t.me\n - SkipUrlFilter:\n skip_mention: false\n\n# (Optional) Global settings\ndisable_edit: true\ndisable_delete: true\nmode: copy # or forward\n\n# (Required) Mirror directions\ndirections:\n - from: [-1001, -1002, -1003]\n to: [-100203]\n\n - from: [-1000#3] # forwards from topic to topic\n to: [-1001#4]\n\n - from: [-100226]\n to: [-1006, -1008]\n # Overwrite global settings\n disable_edit: false\n disable_delete: false\n mode: forward\n # Overwrite global filters\n filters:\n - UrlMessageFilter:\n blacklist: !!set\n ? t.me\n - KeywordReplaceFilter:\n keywords:\n "google.com": "bing.com"\n regex: false # treat keywords as plain text\n - SkipWithKeywordsFilter:\n keywords: !!set\n ? "stopword"\n regex: true # treat keywords as regex expr\n