Skip to content
Projects

About

Telegram 频道投稿、审核与自动化发布平台,支持 Bot、Mini App、多 Bot 和 HTTP API。 | Telegram channel submission, moderation and automated publishing platform with Bot, Mini App, multi-bot and HTTP API support

Design & Media

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

TelePost

Language / 语言: 中文 · English

TelePost is an open-source, self-hosted submission and moderation bot for Telegram channels. It accepts submissions through private chat, a Mini App and an HTTP API. Users can upload, preview and edit content; administrators can review pending submissions and publish them to a channel.

Release PyPI Python License Documentation

Download · Install and deploy · Documentation

What it does

Feature Description
Submissions Photos, videos, GIFs, audio, documents and plain text; preview and edit before submitting, with anonymous and spoiler modes.
Review and publishing Preview, revise, approve or reject submissions in a separate review group, with content masking; optionally connect an AI agent for review suggestions.
Mini App Optional web interface: users browse, submit and track their work; admins handle the review queue.
Search and rankings Keyword and tag search, popular content, personal submission history and statistics.
Scheduled posts Commands such as /schedule add weekly-hot publish rankings on a schedule.
Automated submissions An HTTP API for scripts and other programs, with protection against duplicate submissions on retries.
Restart and recovery Submission and review state is persisted; pending reviews continue after a restart.
Multiple bots Run several bots on one machine through a single entry point, each with its own channel, review group, language and data directory.

How it works

View the bot interface

Bot private-chat main menu

A reader uploads content in the bot's private chat or the Mini App, then confirms tags, title, note, link and the anonymous and spoiler settings in the preview before submitting. Whether it goes through review depends on the entry point:

Entry point Default
Bot private chat Published after the reader confirms; CHAT_REVIEW_REQUIRED=true requires review
Mini App Review by default; controlled separately by MINIAPP_REVIEW_REQUIRED
HTTP API Always submitted for review; a human must approve

The default setup requires a review group (REVIEW_CHAT_ID) separate from the publishing channel. To review private-chat submissions too, set CHAT_REVIEW_REQUIRED=true; the Mini App is controlled separately by MINIAPP_REVIEW_REQUIRED. More settings are in Configuration.

Download and install

Use a computer or server that can remain running and access Telegram. Bot-only use supports Polling without a domain. The Mini App requires Webhook mode and public HTTPS.

Choose one installation method:

Method Suitable for Getting started
Standalone program Windows x64, Linux x64, macOS Apple Silicon; no Python needed Download the latest build
pip Python 3.10+ already installed python -m pip install telepost-bot
Docker / Compose Servers and long-running deployments Docker / Compose installation

Run the standalone program with --setup to open the configuration wizard. For pip, run telepost --setup. See the Installation guide for full setup, upgrade and backup instructions.

First run

  1. Create the bot: Create it with @BotFather and keep the token.

  2. Prepare the channel and review group: Add the bot to the publishing channel as an administrator with permission to post, then add it to a separate private review group and check that it can send messages there. The channel ID is either @username or a numeric ID starting with -100; the owner ID is your own numeric Telegram user ID, not a group or channel ID.

  3. Complete the configuration and start: The setup wizard collects only the token, the channel and the owner ID; the review group is added by hand. Open the generated config.ini, keep what is there, and add the review group under [BOT] (save the file as UTF-8):

    [BOT]
    LANGUAGE = en
    REVIEW_CHAT_ID = -1001234567890
    

    Replace the example ID with your review group's numeric ID. To review private-chat submissions too, add CHAT_REVIEW_REQUIRED = true under the same [BOT] section. Start commands: double-click the Windows standalone program, or run ./telepost-linux-x64 / ./telepost-macos-arm64 on Linux / macOS; telepost for pip. Docker users configure environment variables as described in the installation guide; no wizard or config.ini is required.

  4. Make a first submission: Send or forward photos, videos, GIFs, audio or files in a private chat with the bot, then follow the reply to add tags or preview the draft. The attachment caption can fill the note, and its hashtags are imported automatically. Check that you have at least one attachment and one tag, then tap ✅ Publish (or ✅ Submit for review when chat review is on).

All commands: Command reference.

Optional features

  • Mini App (Chinese): submit, track and review content inside Telegram. Requires an HTTPS address and a session secret.
  • HTTP API: accept submissions from scripts and services, with idempotent submissions to prevent duplicates on retries.
  • AI-assisted review (MCP) (Chinese): connect an external AI agent through MCP to inspect submissions and suggest decisions. Read-only mode is recommended; with write access enabled, the program does not enforce additional human confirmation.
  • Online reading: optionally enable TelePress to generate Telegraph reading pages for TXT novels.

Documentation

Documentation site: https://redtidev1918.github.io/TelePost/#/en/

Webhook deployment, Fly.io, operations and performance guides are on the documentation site.

Related projects

  • PixivFlow: find and collect Pixiv works matching your filters, then send them to TelePost for review and publishing.
  • TelePress: generate online reading pages for TXT novels; the library ships with TelePost, and online reading must be enabled separately.
  • pixivflow-telepost-deploy: guides and tools for deploying PixivFlow and TelePost as separate services.

TelePost works independently; deploying PixivFlow or the full ecosystem is optional.

License

MIT License

Explore related projects

Loading…