Profitroll
5adb004a2a
* `/report` command added * Updated to libbot 1.5 * Moved to [PhotosAPI_Client](https://git.end-play.xyz/profitroll/PhotosAPI_Client) v0.5.0 from using self-made API client * Video support (almost stable) * Bug fixes and improvements Co-authored-by: profitroll <vozhd.kk@gmail.com> Reviewed-on: #27
199 lines
4.5 KiB
JSON
199 lines
4.5 KiB
JSON
{
|
|
"locale": "en",
|
|
"locale_log": "en",
|
|
"locale_fallback": "en",
|
|
"bot": {
|
|
"owner": 0,
|
|
"admins": [],
|
|
"api_id": 0,
|
|
"api_hash": "",
|
|
"bot_token": "",
|
|
"max_concurrent_transmissions": 5,
|
|
"scoped_commands": true
|
|
},
|
|
"database": {
|
|
"user": null,
|
|
"password": null,
|
|
"host": "127.0.0.1",
|
|
"port": 27017,
|
|
"name": "tgposter"
|
|
},
|
|
"reports": {
|
|
"chat_id": 0,
|
|
"sent": false,
|
|
"error": true,
|
|
"update": true,
|
|
"startup": true,
|
|
"shutdown": true
|
|
},
|
|
"mode": {
|
|
"post": true,
|
|
"submit": true
|
|
},
|
|
"logging": {
|
|
"size": 512,
|
|
"location": "logs"
|
|
},
|
|
"locations": {
|
|
"tmp": "tmp",
|
|
"data": "data",
|
|
"cache": "cache",
|
|
"sent": "data/sent",
|
|
"queue": "data/queue",
|
|
"index": "data/index.json",
|
|
"locale": "locale"
|
|
},
|
|
"disabled_plugins": [],
|
|
"posting": {
|
|
"channel": 0,
|
|
"comments": 0,
|
|
"silent": false,
|
|
"move_sent": false,
|
|
"use_interval": false,
|
|
"interval": "1h30m",
|
|
"submitted_caption": {
|
|
"enabled": true,
|
|
"ignore_admins": true,
|
|
"text": "#submitted"
|
|
},
|
|
"types": {
|
|
"photo": true,
|
|
"video": false
|
|
},
|
|
"extensions": {
|
|
"photo": [
|
|
"jpg",
|
|
"png",
|
|
"jpeg"
|
|
],
|
|
"video": [
|
|
"mp4",
|
|
"avi",
|
|
"mkv",
|
|
"webm",
|
|
"mov"
|
|
]
|
|
},
|
|
"time": [
|
|
"08:00",
|
|
"10:00",
|
|
"12:00",
|
|
"14:00",
|
|
"16:00",
|
|
"18:00",
|
|
"20:00",
|
|
"22:00"
|
|
],
|
|
"api": {
|
|
"address": "http://localhost:8054",
|
|
"address_external": "https://photos.domain.com",
|
|
"username": "",
|
|
"password": "",
|
|
"album": ""
|
|
}
|
|
},
|
|
"caption": {
|
|
"enabled": false,
|
|
"link": null,
|
|
"text": [
|
|
"sample text"
|
|
]
|
|
},
|
|
"submission": {
|
|
"timeout": 30,
|
|
"file_size": 15728640,
|
|
"tmp_size": 15728640,
|
|
"allow_duplicates": false,
|
|
"send_uploaded_id": false,
|
|
"require_confirmation": {
|
|
"users": true,
|
|
"admins": true
|
|
},
|
|
"mime_types": [
|
|
"image/png",
|
|
"image/jpeg",
|
|
"video/mp4",
|
|
"video/quicktime"
|
|
]
|
|
},
|
|
"commands": {
|
|
"start": {
|
|
"scopes": [
|
|
{
|
|
"name": "BotCommandScopeDefault"
|
|
},
|
|
{
|
|
"name": "BotCommandScopeChat",
|
|
"chat_id": "owner"
|
|
}
|
|
]
|
|
},
|
|
"rules": {
|
|
"scopes": [
|
|
{
|
|
"name": "BotCommandScopeDefault"
|
|
},
|
|
{
|
|
"name": "BotCommandScopeChat",
|
|
"chat_id": "owner"
|
|
}
|
|
]
|
|
},
|
|
"report": {
|
|
"scopes": [
|
|
{
|
|
"name": "BotCommandScopeChat",
|
|
"chat_id": "comments"
|
|
}
|
|
]
|
|
},
|
|
"forwards": {
|
|
"scopes": [
|
|
{
|
|
"name": "BotCommandScopeChat",
|
|
"chat_id": "owner"
|
|
}
|
|
]
|
|
},
|
|
"import": {
|
|
"scopes": [
|
|
{
|
|
"name": "BotCommandScopeChat",
|
|
"chat_id": "owner"
|
|
}
|
|
]
|
|
},
|
|
"export": {
|
|
"scopes": [
|
|
{
|
|
"name": "BotCommandScopeChat",
|
|
"chat_id": "owner"
|
|
}
|
|
]
|
|
},
|
|
"remove": {
|
|
"scopes": [
|
|
{
|
|
"name": "BotCommandScopeChat",
|
|
"chat_id": "owner"
|
|
}
|
|
]
|
|
},
|
|
"purge": {
|
|
"scopes": [
|
|
{
|
|
"name": "BotCommandScopeChat",
|
|
"chat_id": "owner"
|
|
}
|
|
]
|
|
},
|
|
"shutdown": {
|
|
"scopes": [
|
|
{
|
|
"name": "BotCommandScopeChat",
|
|
"chat_id": "owner"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |