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

204 lines
4.6 KiB
JSON
Raw Permalink Normal View History

2022-08-08 15:53:26 +03:00
{
2022-08-10 14:08:15 +03:00
"locale": "en",
2022-08-08 15:53:26 +03:00
"bot": {
"owner": 0,
"admins": [],
2022-08-08 15:53:26 +03:00
"api_id": 0,
"api_hash": "",
"bot_token": "",
"max_concurrent_transmissions": 1,
"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-07-03 12:04:39 +03:00
"chat_id": "owner",
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
},
"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-06-30 12:34:06 +03:00
"cache": "cache"
2022-08-08 15:53:26 +03:00
},
"disabled_plugins": [],
2022-08-08 15:53:26 +03:00
"posting": {
"channel": 0,
"comments": 0,
2022-08-08 15:53:26 +03:00
"silent": false,
"move_sent": false,
2023-02-17 22:53:43 +02:00
"use_interval": false,
"interval": "1h30m",
2023-02-24 19:39:33 +02:00
"submitted_caption": {
"enabled": true,
"ignore_admins": true,
"text": "#submitted"
},
"types": {
"photo": true,
"video": false
},
2022-08-08 15:53:26 +03:00
"extensions": {
"photo": [
"jpg",
"png",
2022-08-08 20:06:10 +03:00
"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/jpeg",
"video/mp4",
"video/quicktime"
]
2022-08-10 14:08:15 +03:00
},
"commands": {
"start": {
"scopes": [
{
"name": "BotCommandScopeDefault"
},
{
"name": "BotCommandScopeChat",
"chat_id": "owner"
}
]
},
"rules": {
"scopes": [
{
"name": "BotCommandScopeDefault"
},
{
"name": "BotCommandScopeChat",
"chat_id": "owner"
}
]
},
2023-06-28 11:43:13 +03:00
"language": {
"scopes": [
{
"name": "BotCommandScopeDefault"
2023-06-28 11:48:14 +03:00
},
{
"name": "BotCommandScopeChat",
"chat_id": "owner"
2023-06-28 11:43:13 +03:00
}
]
},
"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"
}
]
}
}
2022-08-08 15:53:26 +03:00
}