-
Notifications
You must be signed in to change notification settings - Fork 80
/
sample_config.toml
40 lines (33 loc) · 1.28 KB
/
sample_config.toml
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
# ---- REQUIRED ---- #
[telegram]
# Get this value from https://my.telegram.org/apps
api_id = 123 # Client API ID used for authentication
api_hash = "12345678" # Client API hash used for authentication
# ---- OPTIONAL ---- #
[telegram.helper]
# Bot token used for helper
# token = "123456789:ABC" # Remove the '#'' and add your token to initialize
[bot]
# Mongodb url from https://cloud.mongodb.com/
db_uri = "mongodb://srv+"
# ---- OPTIONAL ---- #
# Bot command prefix
prefix = "."
# How the bot responds to commands.
# Valid options: edit, reply, repost
response_mode = "edit"
# How the bot handles responses too long for one message by default.
# Note that this can be overridden on a per-command basis.
# Valid options: split, truncate
overflow_mode = "truncate"
# Maximum number of pages per message before truncation takes place.
# Only applicable if the overflow mode is "split".
# This is a sanity check to prevent abnormally long messages from making the bot spam
# and potentially getting your account banned/limited.
overflow_page_limit = 4
# Whether to redact sensitive information from messages the bot sends/responds to.
# "Sensitive information" is defined as the Telegram API ID and hash as well as the
# account's phone number.
redact_responses = true
# Colorlog setting
colorlog = false