{
"database":"db.db",
"domain":"https://domain.com",
"listen_addr":":8088",
"data_folder":"/data/memo/",
"log_level":"error",
"telegram_id":123456789,
"telegram_token":"123456789:abc",
"telegram_webhook":"/telegram/webhook",
"token":{
"auto_update":0,
"preview":10,
"view":0,
"share":1
}
}
database
data source name, supportSQLite3
andPostgreSQL
domain
used by the webhook, preview, sharelisten_addr
program listening addressdata_folder
work folderlog_level
log leveltelegram_id
your telegram id, isn't usernametelegram_token
Bot's tokentelegram_webhook
webhook path, switch randomly will cause the message to be losttoken.auto_update
how many minutes to update the token, Disable when zerotoken.preview
the effective minutes of the preview linktoken.view
the effective minutes of the view linktoken.share
the effective minutes of the share link