The config.toml
is written in the TOML format
It has the following sections:
options
- optional Bot specific optionstelegram
- telegram related configmongo
- mongo related configs
See config.example.toml for an example config
file_log
- optional flag to enable logging (Default:true
)
[options]
file_log = true
Please obtain api_id
& api_hash
from my.telegram.org
ensure that you don't leak the config as these are sensitive keys.
api_id
- telegram api idapi_hash
- telegram api hashphone
- telegram account's phone in+{CC}{NUMBER}
format
[telegram]
api_id = 123456
api_hash = "fffdddddddcccccccbbbbbbbaaaaa444"
phone = "+91123456790-"
uri
- mongodb server uri
[mongo]
uri = "mongodb://localhost:27017"