Content poster is an easy to setup, fully functional Telegram bot that can find and post content to your channel built with aiogram.
- Install latest python3 and its dependencies
- Download and unzip the project
- Install project packages via pip (
pip3 intall -r requirements.txt) - Configure bot by editing
data.jsonfile
Configuration is made via editing data.json file. You have already downloaded an example configuration, here's a description of each parameter
integerpage - Last used yande.re page, not recommended to edit (defaults to4000)stringtoken - Bot token obtained from @BotFatherstringtimezone - Your pytz timezone (defaults to"UTC")boollog_fills - Whether to log post fillings or not (defaults totrue)stringchat - Chat ID where the bot will send postsbooldisable_config_check - If you're risky enough you can disable configuration file validation passing true to this parameter (defaults tofalse)
stringratings - List of post ratings to use: explicit, questionable, safe, * (defaults to"*")listpost_time - List of times when posts will be sent to your channel (defaults to["8:00", "12:00", "16:00", "20:00"])stringparse_mode - Mode of parsing entities in captions can be HTML, Markdown or MarkdownV2 (defaults tonull)stringcaption - Photo caption, parse_mode will be applied (defaults tonull)boolsend_document - Whether to post document after photo (defaults tofalse)stringdocument_name - Name of document that will be posted after photo (defaults to"Document")stringdocument_caption - Same as caption, but for document
{
"page": 4000,
"ratings": "questionable, explicit",
"post_time": [
"8:00",
"12:00",
"16:00",
"20:00"
],
"timezone": "Europe\/Kiev",
"token": "123456789:QWERTYUIOPASDFGHJKLZXCVBNMQWERTYUIO",
"chat": -1001234567890,
"caption": null,
"parse_mode": "HTML",
"send_document": true,
"document_name": "Document",
"document_caption": null,
"log_fills": true,
"disable_config_check": true
}