This repository has been archived on 2024-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
TelegramPoster/config_example.json

189 lines
4.3 KiB
JSON
Raw Normal View History

2022-08-08 15:53:26 +03:00
{
2022-08-10 14:08:15 +03:00
"locale": "en",
2022-09-18 19:10:41 +03:00
"locale_log": "en",
2022-08-10 14:08:15 +03:00
"locale_fallback": "en",
2022-08-08 15:53:26 +03:00
"bot": {
2023-06-21 17:39:33 +03:00
"owner": 0,
"admins": [],
2022-08-08 15:53:26 +03:00
"api_id": 0,
"api_hash": "",
2023-06-21 17:39:33 +03:00
"bot_token": "",
"max_concurrent_transmissions": 5,
"scoped_commands": true
2022-08-08 15:53:26 +03:00
},
2023-02-14 15:45:52 +02:00
"database": {
"user": null,
"password": null,
"host": "127.0.0.1",
"port": 27017,
"name": "tgposter"
},
2022-08-08 15:53:26 +03:00
"reports": {
2023-06-21 17:39:33 +03:00
"chat_id": 0,
2022-08-08 15:53:26 +03:00
"sent": false,
"error": true,
2023-03-22 12:03:03 +02:00
"update": true,
2022-08-08 15:53:26 +03:00
"startup": true,
"shutdown": true
},
2023-06-21 17:39:33 +03:00
"mode": {
"post": true,
"submit": true
},
2022-08-11 13:01:31 +03:00
"logging": {
"size": 512,
"location": "logs"
},
2022-08-08 15:53:26 +03:00
"locations": {
2023-01-17 15:11:23 +02:00
"tmp": "tmp",
2022-08-08 15:53:26 +03:00
"data": "data",
2023-01-17 12:40:59 +02:00
"cache": "cache",
2022-08-08 15:53:26 +03:00
"sent": "data/sent",
2022-08-11 13:01:31 +03:00
"queue": "data/queue",
2022-08-09 14:02:52 +03:00
"index": "data/index.json",
2022-08-10 14:08:15 +03:00
"locale": "locale"
2022-08-08 15:53:26 +03:00
},
2023-06-21 17:39:33 +03:00
"disabled_plugins": [],
2022-08-08 15:53:26 +03:00
"posting": {
"channel": 0,
"silent": false,
"move_sent": false,
2023-02-17 22:53:43 +02:00
"use_interval": false,
"interval": "1h30m",
2023-02-24 20:33:34 +02:00
"page_size": 300,
2023-02-24 19:39:33 +02:00
"submitted_caption": {
"enabled": true,
"ignore_admins": true,
"text": "#submitted"
},
2022-08-08 15:53:26 +03:00
"extensions": {
"photo": [
"jpg",
"png",
2022-08-08 20:06:10 +03:00
"gif",
"jpeg"
2022-08-08 15:53:26 +03:00
],
"video": [
"mp4",
"avi",
"mkv",
2022-08-11 10:59:30 +03:00
"webm",
"mov"
2022-08-08 15:53:26 +03:00
]
},
"time": [
"08:00",
"10:00",
"12:00",
"14:00",
"16:00",
"18:00",
"20:00",
"22:00"
2023-01-17 12:40:59 +02:00
],
"api": {
"address": "http://localhost:8054",
2023-02-17 22:53:43 +02:00
"address_external": "https://photos.domain.com",
2023-01-17 12:40:59 +02:00
"username": "",
"password": "",
2023-01-17 15:11:23 +02:00
"album": ""
2023-01-17 12:40:59 +02:00
}
2022-08-08 15:53:26 +03:00
},
"caption": {
"enabled": false,
2023-03-15 22:58:14 +02:00
"link": null,
"text": [
"sample text"
]
2022-08-09 14:02:52 +03:00
},
"submission": {
2022-08-11 10:59:30 +03:00
"timeout": 30,
2022-08-11 14:38:42 +03:00
"file_size": 15728640,
2023-02-15 12:56:15 +02:00
"tmp_size": 15728640,
2023-02-19 21:44:00 +02:00
"allow_duplicates": false,
2023-03-16 16:03:14 +02:00
"send_uploaded_id": false,
2023-02-17 17:44:56 +02:00
"require_confirmation": {
"users": true,
"admins": true
},
2022-08-11 10:59:30 +03:00
"mime_types": [
"image/png",
"image/gif",
"image/jpeg",
"video/mp4",
"video/quicktime"
]
2022-08-10 14:08:15 +03:00
},
2023-06-21 17:39:33 +03:00
"commands": {
"start": {
"scopes": [
{
"name": "BotCommandScopeDefault"
},
{
"name": "BotCommandScopeChat",
"chat_id": "owner"
}
]
},
"rules": {
"scopes": [
{
"name": "BotCommandScopeDefault"
},
{
"name": "BotCommandScopeChat",
"chat_id": "owner"
}
]
},
"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"
}
]
}
}
2022-08-08 15:53:26 +03:00
}