-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
67 lines (59 loc) · 1.38 KB
/
config.example.yaml
File metadata and controls
67 lines (59 loc) · 1.38 KB
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
app:
name: "TeleAPI"
host: "0.0.0.0"
port: 8080
log_level: "info"
telegram:
api_id: 123456
api_hash: "your_api_hash"
session_name: "teleapi"
channels:
- username: "example_channel"
enabled: true
sync_history: true
history_limit: 1000
filters:
- "crypto-important"
- username: "another_channel"
enabled: true
sync_history: false
filters:
- name: "crypto-important"
include_keywords:
- "BTC"
- "ETH"
- "ETF"
exclude_keywords:
- "广告"
- "推广"
regex: []
message_types:
- "text"
- "photo"
security:
admin_api_key: "your_admin_api_key"
allow_health_without_auth: true
outputs:
api:
enabled: true
websocket:
enabled: true
webhooks:
- name: "research-system"
url: "https://example.com/webhook/telegram"
secret: "your_webhook_secret"
enabled: true
events:
- "message.created"
channels:
- "example_channel"
filters:
- "crypto-important"
retry:
max_attempts: 3
backoff_seconds:
- 5
- 30
- 120
database:
url: "sqlite+aiosqlite:///./data/teleapi.db"