forked from khoben/telemirror
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env-example
More file actions
16 lines (16 loc) · 2.06 KB
/
.env-example
File metadata and controls
16 lines (16 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
API_ID=test
API_HASH=test
SESSION_STRING=test
USE_MEMORY_DB=true
CHAT_MAPPING=[-100999999,-100999999,-100999999:-1009999999];
# Optional parameters can be removed
# (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
# The next optional parameters can be set to prevent bans/logouts
# (Optional) System version info for telegram client. You can set it to `4.16.30-vxCUSTOM` or any other value if you believe it will help fix the bans. Default is `platform.uname().release`
# See: https://github.com/LonamiWebs/Telethon/issues/4051
API_SYSTEM_VERSION=
# (Optional) Device model info for telegram client. Default is `platform.uname().machine`
API_DEVICE_MODEL=
# (Optional) Application version info for telegram client. Default is `telethon.version.__version__`
API_APP_VERSION=