telepost-bot 2.83.0__tar.gz → 2.83.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/CHANGELOG.md +14 -0
  2. telepost_bot-2.83.2/PKG-INFO +314 -0
  3. telepost_bot-2.83.2/README.en.md +292 -0
  4. telepost_bot-2.83.2/README.md +266 -0
  5. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/config/settings.py +6 -1
  6. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/config.ini.example +27 -2
  7. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/review.py +18 -3
  8. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/main.py +8 -2
  9. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/review_queue.py +7 -1
  10. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/submitter_notify.py +4 -1
  11. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/build_info.py +1 -1
  12. telepost_bot-2.83.2/telepost/domain/review_chat.py +39 -0
  13. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/storage/sqlite/reviews.py +3 -1
  14. telepost_bot-2.83.2/telepost_bot.egg-info/PKG-INFO +314 -0
  15. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost_bot.egg-info/SOURCES.txt +5 -0
  16. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_api_server.py +5 -0
  17. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_identity_provenance.py +3 -0
  18. telepost_bot-2.83.2/tests/test_install_scripts.py +163 -0
  19. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_integration.py +15 -11
  20. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_refetch.py +5 -0
  21. telepost_bot-2.83.2/tests/test_review_chat_contract.py +217 -0
  22. telepost_bot-2.83.2/tests/test_security_headers.py +167 -0
  23. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_work_id_wire.py +3 -0
  24. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/api_server.py +13 -0
  25. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/polling_server.py +5 -1
  26. telepost_bot-2.83.2/utils/security_headers.py +81 -0
  27. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/webhook_server.py +17 -3
  28. telepost_bot-2.83.0/PKG-INFO +0 -221
  29. telepost_bot-2.83.0/README.en.md +0 -182
  30. telepost_bot-2.83.0/README.md +0 -173
  31. telepost_bot-2.83.0/telepost_bot.egg-info/PKG-INFO +0 -221
  32. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/LICENSE +0 -0
  33. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/MANIFEST.in +0 -0
  34. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/config/__init__.py +0 -0
  35. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/config/fly-telepost-policy.example.json +0 -0
  36. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/config/review_policy.md +0 -0
  37. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/database/__init__.py +0 -0
  38. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/database/db_manager.py +0 -0
  39. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/__init__.py +0 -0
  40. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/api_commands.py +0 -0
  41. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/automation.py +0 -0
  42. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/botconfig.py +0 -0
  43. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/callback_handlers.py +0 -0
  44. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/channel_listener.py +0 -0
  45. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/command_handlers.py +0 -0
  46. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/conversation.py +0 -0
  47. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/error_handler.py +0 -0
  48. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/index_handlers.py +0 -0
  49. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/mode_selection.py +0 -0
  50. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/moderation.py +0 -0
  51. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/preview_handlers.py +0 -0
  52. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/publish.py +0 -0
  53. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/reaction_stats.py +0 -0
  54. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/recovery.py +0 -0
  55. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/schedule_status.py +0 -0
  56. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/search_handlers.py +0 -0
  57. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/stats_handlers.py +0 -0
  58. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/handlers/upload.py +0 -0
  59. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/mcp_server/__init__.py +0 -0
  60. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/mcp_server/review_client.py +0 -0
  61. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/mcp_server/server.py +0 -0
  62. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/models/__init__.py +0 -0
  63. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/models/state.py +0 -0
  64. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/__init__.py +0 -0
  65. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/SOURCES.sha256 +0 -0
  66. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/__init__.py +0 -0
  67. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/error-mapping.json +0 -0
  68. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/fixtures/ackresult.candidate_search.json +0 -0
  69. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/fixtures/capabilities.pixivflow.json +0 -0
  70. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/fixtures/event.job.expired.json +0 -0
  71. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/fixtures/event.job.succeeded.json +0 -0
  72. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/fixtures/eventpage.candidate_search.json +0 -0
  73. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/fixtures/job.cancelled.candidate_search.json +0 -0
  74. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/fixtures/job.failed.no_candidate.json +0 -0
  75. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/fixtures/job.queued.json +0 -0
  76. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/fixtures/job.running.json +0 -0
  77. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/fixtures/job.succeeded.candidate_search.json +0 -0
  78. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/fixtures/jobpage.candidate_search.json +0 -0
  79. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/fixtures/task.candidate_search.json +0 -0
  80. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/fixtures/task.candidate_search.target_only.json +0 -0
  81. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/protocol/v1/protocol.schema.json +0 -0
  82. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/pyproject.toml +0 -0
  83. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/run.py +0 -0
  84. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/services/__init__.py +0 -0
  85. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/services/review_service.py +0 -0
  86. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/setup.cfg +0 -0
  87. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/__init__.py +0 -0
  88. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/api/__init__.py +0 -0
  89. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/__init__.py +0 -0
  90. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/admin_ops.py +0 -0
  91. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/automation.py +0 -0
  92. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/delivery_planner.py +0 -0
  93. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/editorial.py +0 -0
  94. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/hot.py +0 -0
  95. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/novel_fallback_card.py +0 -0
  96. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/novel_preview.py +0 -0
  97. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/pixivflow_jobs.py +0 -0
  98. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/post_media.py +0 -0
  99. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/posts.py +0 -0
  100. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/publication.py +0 -0
  101. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/reaction_backfill.py +0 -0
  102. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/recovery.py +0 -0
  103. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/refetch.py +0 -0
  104. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/rerender.py +0 -0
  105. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/resubmit.py +0 -0
  106. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/application/telepress_provider.py +0 -0
  107. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/domain/__init__.py +0 -0
  108. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/domain/automation.py +0 -0
  109. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/domain/delivery.py +0 -0
  110. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/domain/editorial.py +0 -0
  111. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/domain/errors.py +0 -0
  112. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/domain/hot.py +0 -0
  113. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/domain/media.py +0 -0
  114. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/domain/navigation.py +0 -0
  115. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/domain/novel_preview.py +0 -0
  116. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/domain/packing.py +0 -0
  117. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/domain/presentation.py +0 -0
  118. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/domain/presentation_policy.py +0 -0
  119. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/domain/refetch_state.py +0 -0
  120. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/domain/review.py +0 -0
  121. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/domain/submission.py +0 -0
  122. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/miniapp/__init__.py +0 -0
  123. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/miniapp/auth.py +0 -0
  124. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/miniapp/rbac.py +0 -0
  125. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/miniapp/role_bindings.py +0 -0
  126. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/miniapp/session.py +0 -0
  127. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/observability/__init__.py +0 -0
  128. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/observability/audit.py +0 -0
  129. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/observability/cli.py +0 -0
  130. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/observability/doctor.py +0 -0
  131. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/observability/errors.py +0 -0
  132. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/observability/redact.py +0 -0
  133. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/storage/__init__.py +0 -0
  134. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/storage/sqlite/__init__.py +0 -0
  135. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/storage/sqlite/automation.py +0 -0
  136. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/storage/sqlite/columns.py +0 -0
  137. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/storage/sqlite/editorial.py +0 -0
  138. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/storage/sqlite/ledger.py +0 -0
  139. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/storage/sqlite/media_assets.py +0 -0
  140. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/storage/sqlite/moderation.py +0 -0
  141. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/storage/sqlite/novel_preview.py +0 -0
  142. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/storage/sqlite/posts.py +0 -0
  143. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/storage/sqlite/protocol_events.py +0 -0
  144. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/storage/sqlite/recovery.py +0 -0
  145. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/storage/sqlite/refetch.py +0 -0
  146. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/storage/sqlite/submitter_notifications.py +0 -0
  147. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/telegram/__init__.py +0 -0
  148. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/telegram/capture.py +0 -0
  149. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/telegram/delivery/__init__.py +0 -0
  150. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/telegram/delivery/discussion.py +0 -0
  151. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/telegram/delivery/executor.py +0 -0
  152. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/telegram/delivery/gateway.py +0 -0
  153. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/telegram/delivery/legacy_runner.py +0 -0
  154. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/telegram/delivery/planner.py +0 -0
  155. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/telegram/delivery/preparation.py +0 -0
  156. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/telegram/delivery/registry.py +0 -0
  157. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/telegram/delivery/sender.py +0 -0
  158. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/telegram/review_keyboard.py +0 -0
  159. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost/telegram/review_stager.py +0 -0
  160. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost_bot.egg-info/dependency_links.txt +0 -0
  161. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost_bot.egg-info/entry_points.txt +0 -0
  162. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost_bot.egg-info/requires.txt +0 -0
  163. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/telepost_bot.egg-info/top_level.txt +0 -0
  164. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_admin_api.py +0 -0
  165. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_anonymous.py +0 -0
  166. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_api_commands.py +0 -0
  167. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_api_version.py +0 -0
  168. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_architecture_application.py +0 -0
  169. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_architecture_core.py +0 -0
  170. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_automation.py +0 -0
  171. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_backfill_attribution.py +0 -0
  172. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_blacklist.py +0 -0
  173. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_bot_language.py +0 -0
  174. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_bot_token_logging.py +0 -0
  175. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_botconfig.py +0 -0
  176. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_boundary.py +0 -0
  177. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_callback_contract.py +0 -0
  178. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_caption_mentions.py +0 -0
  179. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_compatibility.py +0 -0
  180. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_config_encoding.py +0 -0
  181. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_console_encoding.py +0 -0
  182. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_conversation_flow.py +0 -0
  183. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_data_class_cleanup.py +0 -0
  184. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_database.py +0 -0
  185. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_database_first_start.py +0 -0
  186. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_database_operations.py +0 -0
  187. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_delivery_planner.py +0 -0
  188. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_disposition.py +0 -0
  189. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_doctor.py +0 -0
  190. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_editorial.py +0 -0
  191. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_file_validator.py +0 -0
  192. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_fly_deploy_contract.py +0 -0
  193. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_frozen_support.py +0 -0
  194. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_handlers.py +0 -0
  195. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_heat_calculator.py +0 -0
  196. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_helper_functions.py +0 -0
  197. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_hot_domain.py +0 -0
  198. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_legacy_delivery_port_navigation.py +0 -0
  199. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_logic_flow.py +0 -0
  200. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_logical_submissions.py +0 -0
  201. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_maintenance_jobs.py +0 -0
  202. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_manager_notifications.py +0 -0
  203. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_media_decision_audit.py +0 -0
  204. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_media_delivery_pipeline.py +0 -0
  205. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_media_domain.py +0 -0
  206. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_media_preparation.py +0 -0
  207. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_media_proxy_delivery.py +0 -0
  208. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_menu_shortcut_single_reply.py +0 -0
  209. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_messages.py +0 -0
  210. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_miniapp_api.py +0 -0
  211. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_miniapp_auth.py +0 -0
  212. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_miniapp_content.py +0 -0
  213. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_miniapp_entries.py +0 -0
  214. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_miniapp_history.py +0 -0
  215. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_miniapp_rbac.py +0 -0
  216. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_mixed_media_integrity.py +0 -0
  217. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_moderation_and_admin_ux.py +0 -0
  218. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_navigation.py +0 -0
  219. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_no_owner_probe.py +0 -0
  220. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_novel_cover_preview.py +0 -0
  221. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_novel_delivery_semantics.py +0 -0
  222. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_novel_preview.py +0 -0
  223. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_observability.py +0 -0
  224. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_observability_lifecycle.py +0 -0
  225. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_online_reading_root_button.py +0 -0
  226. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_packing_ssot.py +0 -0
  227. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_polling_server.py +0 -0
  228. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_preview_pagination.py +0 -0
  229. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_production_handler_graph.py +0 -0
  230. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_protocol_contract.py +0 -0
  231. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_publication_presentation.py +0 -0
  232. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_publish_idempotency.py +0 -0
  233. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_publish_regressions.py +0 -0
  234. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_publish_reply.py +0 -0
  235. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_reaction_backfill.py +0 -0
  236. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_reaction_stats.py +0 -0
  237. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_recovery.py +0 -0
  238. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_refetch_card_state.py +0 -0
  239. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_refetch_events.py +0 -0
  240. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_refetch_job_lifecycle.py +0 -0
  241. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_refetch_reason_normalization.py +0 -0
  242. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_refetch_replacement.py +0 -0
  243. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_remote_fetch_fallback.py +0 -0
  244. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_rerender.py +0 -0
  245. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_resubmit.py +0 -0
  246. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_review.py +0 -0
  247. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_review_album_payload.py +0 -0
  248. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_review_consistency.py +0 -0
  249. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_review_http_mcp.py +0 -0
  250. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_review_service.py +0 -0
  251. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_robustness.py +0 -0
  252. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_run_dispatcher.py +0 -0
  253. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_run_mode.py +0 -0
  254. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_run_supervisor.py +0 -0
  255. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_schedule_outcomes.py +0 -0
  256. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_search_disabled_hint.py +0 -0
  257. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_search_recovery.py +0 -0
  258. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_security.py +0 -0
  259. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_session_database_handles.py +0 -0
  260. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_shutdown.py +0 -0
  261. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_streaming_uploads.py +0 -0
  262. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_submission_timeout_idempotency.py +0 -0
  263. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_telegram_golden_messages.py +0 -0
  264. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_telegram_media_cache.py +0 -0
  265. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_upload.py +0 -0
  266. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_user_friendly_messages.py +0 -0
  267. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_webhook_ready.py +0 -0
  268. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_webhook_router.py +0 -0
  269. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_webhook_secret.py +0 -0
  270. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_webhook_secret_logging.py +0 -0
  271. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/tests/test_webhook_static.py +0 -0
  272. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/ui/__init__.py +0 -0
  273. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/ui/i18n.py +0 -0
  274. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/ui/keyboards.py +0 -0
  275. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/ui/locales/en/LC_MESSAGES/telepost.mo +0 -0
  276. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/ui/locales/en/LC_MESSAGES/telepost.po +0 -0
  277. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/ui/messages.py +0 -0
  278. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/__init__.py +0 -0
  279. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/api_tokens.py +0 -0
  280. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/blacklist.py +0 -0
  281. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/cache.py +0 -0
  282. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/config_wizard.py +0 -0
  283. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/console.py +0 -0
  284. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/database.py +0 -0
  285. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/file_validator.py +0 -0
  286. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/heat_calculator.py +0 -0
  287. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/helper_functions.py +0 -0
  288. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/index_manager.py +0 -0
  289. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/logging_config.py +0 -0
  290. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/maintenance_jobs.py +0 -0
  291. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/run_mode.py +0 -0
  292. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/runtime_policy.py +0 -0
  293. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/schedule_watchdog.py +0 -0
  294. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/search_engine.py +0 -0
  295. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/utils/submission.py +0 -0
  296. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/webapp/__init__.py +0 -0
  297. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/webapp/dist/assets/2d82b92e720462f8dd3b-Bh4Fahcw.svg +0 -0
  298. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/webapp/dist/assets/index-CLfkW8eZ.css +0 -0
  299. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/webapp/dist/assets/index-CfjBQN_e.js +0 -0
  300. {telepost_bot-2.83.0 → telepost_bot-2.83.2}/webapp/dist/index.html +0 -0
@@ -8,6 +8,20 @@
8
8
  > 发布说明面向普通用户:写「对用户有什么改变」,不写内部实现细节(模块名、函数名、配置键);
9
9
  > 技术细节放进代码注释或 `docs/`。每个 Release 的正文由本文件对应版本段自动生成。
10
10
 
11
+ ## [2.83.2](https://github.com/redtidev1918/TelePost/compare/v2.83.1...v2.83.2) (2026-10-15)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * align concurrent SQLite test with production WAL mode ([#331](https://github.com/redtidev1918/TelePost/issues/331)) ([f0889c4](https://github.com/redtidev1918/TelePost/commit/f0889c43b1ee40d7ac3b99d7a5bd1d4cdb3cc76f))
17
+
18
+ ## [2.83.1](https://github.com/redtidev1918/TelePost/compare/v2.83.0...v2.83.1) (2026-10-11)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * align review admission, installers and Mini App security with runtime behavior ([#328](https://github.com/redtidev1918/TelePost/issues/328)) ([3116ea7](https://github.com/redtidev1918/TelePost/commit/3116ea70dbbba0e184327e8eeddd49ef4ddf6117))
24
+
11
25
  ## [2.83.0](https://github.com/redtidev1918/TelePost/compare/v2.82.0...v2.83.0) (2026-10-11)
12
26
 
13
27
 
@@ -0,0 +1,314 @@
1
+ Metadata-Version: 2.4
2
+ Name: telepost-bot
3
+ Version: 2.83.2
4
+ Summary: Telegram submission, review, and publication bot with a Mini App, HTTP API, and multi-bot supervisor.
5
+ Author: redtidev1918
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/redtidev1918/TelePost
8
+ Project-URL: Repository, https://github.com/redtidev1918/TelePost
9
+ Project-URL: Documentation, https://github.com/redtidev1918/TelePost/tree/main/docs
10
+ Project-URL: Issues, https://github.com/redtidev1918/TelePost/issues
11
+ Project-URL: Changelog, https://github.com/redtidev1918/TelePost/blob/main/CHANGELOG.md
12
+ Keywords: telegram,bot,submission,review,publication,miniapp,telepost,moderation
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Environment :: Console
15
+ Classifier: Framework :: AsyncIO
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Intended Audience :: System Administrators
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Programming Language :: Python :: 3 :: Only
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Topic :: Communications :: Chat
24
+ Classifier: Topic :: Internet :: WWW/HTTP
25
+ Requires-Python: >=3.10
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ Requires-Dist: python-telegram-bot[job-queue]>=22.8
29
+ Requires-Dist: aiohttp>=3.14.3
30
+ Requires-Dist: python-dotenv>=1.2.3
31
+ Requires-Dist: aiosqlite>=0.22.1
32
+ Requires-Dist: psutil>=5.9.8
33
+ Requires-Dist: Pillow>=10.0.0
34
+ Requires-Dist: pyvips>=2.2.0
35
+ Requires-Dist: whoosh>=2.7.4
36
+ Requires-Dist: init-data-py>=1.0.0
37
+ Requires-Dist: telepress>=0.17.2
38
+ Provides-Extra: mcp
39
+ Requires-Dist: mcp<3,>=2.2; extra == "mcp"
40
+ Provides-Extra: dev
41
+ Requires-Dist: Babel>=2.16.0; extra == "dev"
42
+ Requires-Dist: pytest>=7.4.0; extra == "dev"
43
+ Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
44
+ Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
45
+ Requires-Dist: pytest-mock>=3.11.0; extra == "dev"
46
+ Requires-Dist: coverage>=7.3.0; extra == "dev"
47
+ Dynamic: license-file
48
+
49
+ # TelePost
50
+
51
+ **语言 / Language:** 中文 · [English](https://github.com/redtidev1918/TelePost/blob/main/README.en.md)
52
+
53
+ TelePost 是一个开源、自托管的 Telegram 频道投稿与审核 Bot。用户通过 Bot 私聊、Mini App
54
+ 或 HTTP API 投稿;需要审核的稿件由管理员在审核群里查看、修改并决定是否发布。
55
+
56
+ [![Release](https://img.shields.io/github/v/release/redtidev1918/TelePost)](https://github.com/redtidev1918/TelePost/releases/latest) [![PyPI](https://img.shields.io/pypi/v/telepost-bot.svg)](https://pypi.org/project/telepost-bot/) [![Python](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/redtidev1918/TelePost/blob/main/LICENSE) [![Documentation](https://img.shields.io/badge/docs-redtidev1918.github.io-6366f1)](https://redtidev1918.github.io/TelePost/)
57
+
58
+ [下载](https://github.com/redtidev1918/TelePost/blob/main/docs/download.md) · [安装与部署](https://github.com/redtidev1918/TelePost/blob/main/docs/INSTALL.md) · [完整文档](https://redtidev1918.github.io/TelePost/)
59
+
60
+ ## 产品界面
61
+
62
+ ![Bot 私聊主菜单](https://raw.githubusercontent.com/redtidev1918/TelePost/main/docs/assets/screenshots/bot-menu.jpg)
63
+
64
+ Bot 私聊主菜单。用户在这里投稿、查看自己的投稿、搜索频道内容,或浏览热榜与标签云。
65
+
66
+ <!-- 待补充的真实截图(按重要性排序):① 投稿预览与编辑;② 审核群的审核操作;③ Telegram Mini App。 -->
67
+
68
+ ## 主要功能
69
+
70
+ | 功能 | 说明 |
71
+ | --- | --- |
72
+ | 投稿 | 支持图片、视频、GIF、音频、文档和纯文字,提交前可预览、编辑,支持匿名与剧透。 |
73
+ | 审核与发布 | 在私有审核群查看预览、发布、拒绝或遮罩稿件;支持重抓的自动化稿件可更换候选,替换后仍需人工审核。 |
74
+ | Mini App | 可选网页界面,供用户浏览、投稿和查看进度,供审核员与管理员审核、编辑和管理。 |
75
+ | 搜索与热榜 | `/search` 关键词检索(支持 `#标签` 和时间范围),`/tags` 标签云,`/hot`、`/hotweek` 热榜,`/myposts`、`/mystats` 个人投稿与统计。 |
76
+ | 定时发布 | `/schedule add weekly-hot` 等命令按计划发布热榜内容。 |
77
+ | 自动化投稿 | 脚本或上游服务通过 HTTP API 投稿,使用 `idempotency_key` 避免重试产生重复审核或发布。 |
78
+ | AI 辅助审核 | 可选通过 MCP 接入 Codex、Claude 等 AI Agent,查看待审稿件并提供审核建议。 |
79
+ | 多 Bot 与自托管 | 同一台机器可并行运行多个 Bot,各自使用独立的频道、审核群、语言和数据目录。 |
80
+
81
+ 各入口的默认审核规则见[如何工作](#如何工作),集成与部署细节见[更多能力](#更多能力)。
82
+
83
+ ## 如何工作
84
+
85
+ ```text
86
+ 用户投稿 ──▶ 预览与编辑 ──▶ 按配置审核 ──▶ 发布到频道
87
+ ```
88
+
89
+ 用户在 Bot 私聊或 Mini App 上传内容,先在预览里确认标签、标题、简介、链接及匿名、剧透设置,
90
+ 再提交。是否进入审核由投稿入口决定:
91
+
92
+ | 投稿入口 | 默认行为 |
93
+ | --- | --- |
94
+ | Bot 私聊 | 确认后直接发布;`CHAT_REVIEW_REQUIRED=true` 时先审核 |
95
+ | Mini App | 默认先审核;由 `MINIAPP_REVIEW_REQUIRED` 单独控制 |
96
+ | HTTP API | 固定先提交审核,必须人工批准 |
97
+
98
+ 通过 HTTP API 提交的自动化稿件(含 PixivFlow 等上游服务)必须人工批准。
99
+ `API_REVIEW_REQUIRED` 只保留兼容,不能关闭 API 审核。默认配置会用到审核群,
100
+ 因此 `REVIEW_CHAT_ID` 必填,且不能与发布频道相同;
101
+ 完整默认值、审核行为与保留策略见[配置参考](https://github.com/redtidev1918/TelePost/blob/main/docs/CONFIGURATION.md#审核)。
102
+
103
+ ## 下载与安装
104
+
105
+ 按运行环境选择一种安装方式,完成后继续[首次使用](#首次使用)。
106
+
107
+ **独立程序(不需要 Python)** —— 从[下载页](https://github.com/redtidev1918/TelePost/blob/main/docs/download.md)
108
+ 或 [Releases](https://github.com/redtidev1918/TelePost/releases/latest) 取得对应平台的文件:
109
+ Windows x64 是 `telepost-windows-x64.exe`,Linux x64 是 `telepost-linux-x64`,
110
+ macOS(Apple Silicon)是 `telepost-macos-arm64`。放在一个固定文件夹里,运行配置向导:
111
+
112
+ ```powershell
113
+ .\telepost-windows-x64.exe --setup
114
+ ```
115
+
116
+ Linux / macOS 首次运行前先赋予执行权限:
117
+
118
+ ```bash
119
+ chmod +x telepost-linux-x64
120
+ ./telepost-linux-x64 --setup
121
+ ```
122
+
123
+ macOS 将上述文件名换成 `telepost-macos-arm64`。
124
+
125
+ **pip(已有 Python 3.10+ 环境)**:
126
+
127
+ ```bash
128
+ python -m pip install telepost-bot
129
+ telepost --setup
130
+ ```
131
+
132
+ PyPI 分发包名是 `telepost-bot`,安装后的命令是 `telepost`;配置与数据保持在当前工作目录,
133
+ 之后请始终从同一目录启动。建议安装系统 [libvips](https://github.com/redtidev1918/TelePost/blob/main/docs/INSTALL.md#libvips-系统依赖):
134
+ 缺少它也能正常投稿,只是超大图片的流式缩放不可用。
135
+
136
+ **Docker(服务器或长期部署)** —— 下载或克隆仓库,在根目录准备 `.env`(`TOKEN`、
137
+ `CHANNEL_ID`、`OWNER_ID`、`REVIEW_CHAT_ID` 与固定的 `TELEPOST_VERSION`),然后启动:
138
+
139
+ ```bash
140
+ docker compose pull
141
+ docker compose up -d
142
+ ```
143
+
144
+ 升级、卸载、系统依赖和全部配置项见[安装与部署](https://github.com/redtidev1918/TelePost/blob/main/docs/INSTALL.md)。
145
+ 接收模式与公网 HTTPS 的要求见[更多能力](#更多能力)。
146
+
147
+ ## 首次使用
148
+
149
+ 1. **创建 Bot** —— 在 [@BotFather](https://t.me/BotFather) 创建 Bot 并取得 Token。
150
+ 2. **准备频道和审核群** —— 把 Bot 加为发布频道的管理员并授予发帖权限;再把它加入一个
151
+ **独立**的私有审核群,确认它能在群里发送消息。频道 ID 可以用 `@频道用户名` 或
152
+ `-100` 开头的数字 ID;Owner ID 是你自己的数字 Telegram User ID,不是群或频道 ID。
153
+ 3. **补齐配置并启动** —— 独立程序与 pip 的配置向导只询问 Token、频道和 Owner ID。打开它生成的
154
+ `config.ini`,保留已有内容,在 `[BOT]` 节补上审核群(文件保存为 UTF-8),然后启动:
155
+
156
+ ```ini
157
+ [BOT]
158
+ LANGUAGE = zh
159
+ REVIEW_CHAT_ID = -1001234567890
160
+ ```
161
+
162
+ 把示例 ID 换成你的审核群 ID。Windows 独立程序可双击启动;Linux / macOS 运行对应的
163
+ `./telepost-linux-x64` 或 `./telepost-macos-arm64`;pip 用 `telepost`。
164
+ Docker 用户在前述 `.env` 中填写配置,无需运行向导或编辑 `config.ini`。
165
+ 4. **发起第一次投稿** —— 私聊 Bot 发送 `/start`,点击「📝 开始投稿」或发送 `/submit`;
166
+ 上传图片、视频、GIF、音频或文件,完成后发送 `/done_media` 进入预览;纯文字投稿用
167
+ `/skip_media` 跳过上传。在预览里填写标签和文字内容、按需修改,最后点击「✅ 确认发布」
168
+ (开启聊天审核后是「✅ 提交审核」)。随时可以发送 `/cancel` 取消。
169
+
170
+ 全部命令见[命令参考](https://github.com/redtidev1918/TelePost/blob/main/docs/COMMANDS.md)。
171
+
172
+ ## Mini App(可选)
173
+
174
+ Mini App 是同一程序自带的网页界面:用户在手机上浏览公开内容、投稿并跟踪自己的投稿;
175
+ 审核员和管理员可以处理审核队列、编辑文案与附件顺序、管理角色与黑名单。
176
+
177
+ 启用需要公网 HTTPS 地址,并在环境变量中设置 `MINIAPP_SESSION_SECRET`。网页前端由程序
178
+ 自己的 HTTP 服务提供,目前只在 Webhook 模式下挂载。私聊入口需启用 `MINIAPP_ENABLED`
179
+ 并配置 `MINIAPP_PUBLIC_URL`(可从 `WEBHOOK_URL` 推导);缺少密钥时,入口即使显示也无法登录。
180
+ 如需通过 `?startapp=` 链接直接打开,还要在 BotFather 配置 Main Mini App。
181
+
182
+ 身份来自 Telegram,并在服务端用 `initData` 校验。在普通浏览器里直接打开网址不等于登录,
183
+ 也不会获得审核或管理权限。配置与部署步骤见
184
+ [Telegram Mini App](https://github.com/redtidev1918/TelePost/blob/main/docs/MINIAPP.md)。
185
+
186
+ ## AI 辅助审核(MCP,可选)
187
+
188
+ MCP 是 AI Agent 调用外部工具的协议。TelePost 可通过 MCP 连接 Codex、Claude 等 AI Agent,
189
+ 让它们查看待审核稿件、依据频道审核规则提出建议,
190
+ 并在你明确授权、权限允许时执行审核操作。
191
+
192
+ TelePost 不内置大语言模型,也不会自行调用 AI 审核。推荐把 MCP 与审核 API 都设为只读,
193
+ 只让 AI 提供建议;启用写入权限后,应在执行具体操作前取得人工确认,但程序不强制这一步。
194
+ 工具列表、Token 与接入配置见
195
+ [MCP 投稿审核](https://github.com/redtidev1918/TelePost/blob/main/docs/MCP_REVIEW.md)。
196
+
197
+ ## 更多能力
198
+
199
+ - **HTTP API** —— 供脚本或其他服务发送投稿请求,与 Bot 共用审核与发布流程,示例见下方。
200
+ - **TXT 小说与在线阅读** —— TXT 照常作为文件发布;可选启用 TelePress 生成 Telegraph 阅读页,
201
+ 失败不影响发布。
202
+ - **Webhook 与 Polling** —— Polling 由 Bot 主动获取 Telegram 消息,无需域名或公网 HTTPS;
203
+ Webhook 由 Telegram 将消息推送给 Bot,需要公网 HTTPS 地址。Mini App 同样需要公网 HTTPS。
204
+ - **文件类型过滤** —— 默认拦截可执行文件、常见脚本和压缩包,三个投稿入口都会检查。
205
+ - **服务器部署** —— 提供 Docker 镜像与 Fly.io 配置,备份与运行状态见
206
+ [运维手册](https://github.com/redtidev1918/TelePost/blob/main/docs/OPERATIONS.md)。
207
+
208
+ <details>
209
+ <summary>HTTP API 投稿示例</summary>
210
+
211
+ Owner 在 Bot 中用 `/gen_token <名称>` 生成 Token,明文只显示一次:
212
+
213
+ ```bash
214
+ curl -X POST 'https://example.com/api/v1/submissions' \
215
+ -H 'Authorization: Bearer tp_xxxx' \
216
+ -F 'files=@image.jpg' \
217
+ -F 'title=示例稿件' \
218
+ -F 'tags=插画' \
219
+ -F 'idempotency_key=source:123'
220
+ ```
221
+
222
+ 多 Bot 部署把地址换成 `/api/botN/v1/submissions`。审核规则见[如何工作](#如何工作),完整字段与限制见
223
+ [HTTP API](https://github.com/redtidev1918/TelePost/blob/main/docs/API.md)。
224
+
225
+ </details>
226
+
227
+ ## 常见问题
228
+
229
+ <details>
230
+ <summary>需要服务器和域名吗?</summary>
231
+
232
+ 需要一台可以长期运行的电脑或服务器。使用 Bot 私聊与审核群时,可选择 Polling,无需域名;
233
+ Webhook 和 Mini App 的公网要求见[更多能力](#更多能力)。
234
+ 详见[安装与部署](https://github.com/redtidev1918/TelePost/blob/main/docs/INSTALL.md)。
235
+
236
+ </details>
237
+
238
+ <details>
239
+ <summary>私聊投稿为什么直接发布了?</summary>
240
+
241
+ Bot 私聊投稿默认在用户确认后直接发布。设置 `CHAT_REVIEW_REQUIRED=true` 可改为先审核,
242
+ 不影响其他入口。各入口的默认行为见[如何工作](#如何工作)。
243
+
244
+ </details>
245
+
246
+ <details>
247
+ <summary>Mini App 为什么没有出现?</summary>
248
+
249
+ 先检查 `MINIAPP_ENABLED` 和入口网址是否配置,再确认 Webhook 模式下网页可访问。
250
+ 入口显示却无法登录时,检查环境变量中的 `MINIAPP_SESSION_SECRET`,并从 Telegram 内打开。
251
+ 启用条件见 [Mini App](#mini-app可选),排查步骤见
252
+ [Telegram Mini App](https://github.com/redtidev1918/TelePost/blob/main/docs/MINIAPP.md)。
253
+
254
+ </details>
255
+
256
+ <details>
257
+ <summary>Bot 为什么没有响应?</summary>
258
+
259
+ 先确认同一个 Bot Token 只被一个实例使用,再看进程状态、最近日志和 `/health`;Webhook 模式
260
+ 还要检查 `getWebhookInfo`。同时启动源码、容器或旧机器会造成 Polling 冲突。详见
261
+ [故障排查](https://github.com/redtidev1918/TelePost/blob/main/docs/TROUBLESHOOTING.md#bot-完全无响应)。
262
+
263
+ </details>
264
+
265
+ <details>
266
+ <summary>投稿文件保存在哪里?</summary>
267
+
268
+ 默认数据保存在 `data/`(pip 安装时位于启动命令的工作目录):稿件库 `submissions.db`、
269
+ 会话状态 `persistence.pickle`、运行策略 `runtime-policy.json`、搜索索引 `search_index`
270
+ 和 API 临时上传 `api_uploads/`;
271
+ 多 Bot 各自使用 `data/botN/`。媒体本身保存在 Telegram 侧,数据库只记录引用。升级或迁移时
272
+ 备份并保留整个 `data/`,备份方法见[运维手册](https://github.com/redtidev1918/TelePost/blob/main/docs/OPERATIONS.md#持久数据)。
273
+
274
+ </details>
275
+
276
+ <details>
277
+ <summary>MCP 会自动替我批准内容吗?</summary>
278
+
279
+ 是否能执行批准取决于权限:`TELEPOST_MCP_REVIEW_MODE=readonly` 不注册审核写入工具,
280
+ `TELEPOST_REVIEW_API_MODE=readonly` 则在服务端拒绝写入。建议两层都设为只读;
281
+ 启用写入后的人工确认要求见[AI 辅助审核](#ai-辅助审核mcp可选)。完整配置见
282
+ [MCP 投稿审核](https://github.com/redtidev1918/TelePost/blob/main/docs/MCP_REVIEW.md)。
283
+
284
+ </details>
285
+
286
+ ## 文档
287
+
288
+ 完整文档站:<https://redtidev1918.github.io/TelePost/>
289
+
290
+ - 安装、升级与卸载 —— [安装与部署](https://github.com/redtidev1918/TelePost/blob/main/docs/INSTALL.md)
291
+ - 命令与所需权限 —— [命令参考](https://github.com/redtidev1918/TelePost/blob/main/docs/COMMANDS.md)
292
+ - 配置项、审核默认值与多 Bot —— [配置参考](https://github.com/redtidev1918/TelePost/blob/main/docs/CONFIGURATION.md)
293
+ - 网页投稿与审核界面 —— [Telegram Mini App](https://github.com/redtidev1918/TelePost/blob/main/docs/MINIAPP.md)
294
+ - 脚本与自动化投稿 —— [HTTP API](https://github.com/redtidev1918/TelePost/blob/main/docs/API.md)
295
+ - AI Agent 参与审核 —— [MCP 投稿审核](https://github.com/redtidev1918/TelePost/blob/main/docs/MCP_REVIEW.md)
296
+ - 接收模式与反向代理 —— [Webhook 与 Polling](https://github.com/redtidev1918/TelePost/blob/main/docs/WEBHOOK_MODE.md)
297
+ - 部署到 Fly.io —— [Fly.io 部署](https://github.com/redtidev1918/TelePost/blob/main/docs/FLYIO_DEPLOYMENT.md)
298
+ - 备份、升级与运行状态 —— [运维手册](https://github.com/redtidev1918/TelePost/blob/main/docs/OPERATIONS.md)
299
+ - 排查无响应、上传或发布失败 —— [故障排查](https://github.com/redtidev1918/TelePost/blob/main/docs/TROUBLESHOOTING.md)
300
+ - 评估内存与容量 —— [性能与容量](https://github.com/redtidev1918/TelePost/blob/main/docs/PERFORMANCE.md)
301
+ - 开发与测试 —— [测试指南](https://github.com/redtidev1918/TelePost/blob/main/docs/TESTING.md)、[贡献指南](https://github.com/redtidev1918/TelePost/blob/main/CONTRIBUTING.md)
302
+
303
+ ## 相关项目
304
+
305
+ - [PixivFlow](https://github.com/redtidev1918/PixivFlow) —— Pixiv 下载、筛选与自动收集工具,
306
+ 可通过 HTTP API 把作品投稿到 TelePost。
307
+ - [pixivflow-telepost-deploy](https://github.com/redtidev1918/pixivflow-telepost-deploy) ——
308
+ PixivFlow + TelePost 的组合部署。
309
+
310
+ 两者都是可选集成,不是运行 TelePost 的必需依赖。
311
+
312
+ ## 许可证
313
+
314
+ [MIT License](https://github.com/redtidev1918/TelePost/blob/main/LICENSE)
@@ -0,0 +1,292 @@
1
+ # TelePost
2
+
3
+ **Language / 语言:** [中文](https://github.com/redtidev1918/TelePost/blob/main/README.md) · English
4
+
5
+ TelePost is an open-source, self-hosted submission and moderation bot for Telegram channels.
6
+ Readers submit work through the bot's private chat, the Mini App or the HTTP API; submissions that
7
+ need review are viewed, edited and decided by the admins in the review group.
8
+
9
+ [![Release](https://img.shields.io/github/v/release/redtidev1918/TelePost)](https://github.com/redtidev1918/TelePost/releases/latest) [![PyPI](https://img.shields.io/pypi/v/telepost-bot.svg)](https://pypi.org/project/telepost-bot/) [![Python](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/redtidev1918/TelePost/blob/main/LICENSE) [![Documentation](https://img.shields.io/badge/docs-redtidev1918.github.io-6366f1)](https://redtidev1918.github.io/TelePost/#/en/)
10
+
11
+ [Download](https://github.com/redtidev1918/TelePost/blob/main/docs/en/download.md) · [Install and deploy](https://github.com/redtidev1918/TelePost/blob/main/docs/en/INSTALL.md) · [Documentation](https://redtidev1918.github.io/TelePost/#/en/)
12
+
13
+ ## Screenshots
14
+
15
+ ![Bot private-chat main menu](https://raw.githubusercontent.com/redtidev1918/TelePost/main/docs/assets/screenshots/bot-menu.jpg)
16
+
17
+ The bot's main menu: submit work, follow your own submissions, search the channel, or browse
18
+ rankings and tags.
19
+
20
+ <!-- Real screenshots still to add, in priority order: (1) submission preview and editing; (2) moderation actions in the review group; (3) the Telegram Mini App. -->
21
+
22
+ ## What it does
23
+
24
+ | Feature | Description |
25
+ | --- | --- |
26
+ | Submissions | Photos, videos, GIFs, audio, documents and plain text; preview and edit before submitting, with anonymous and spoiler modes. |
27
+ | Review and publishing | View previews and publish, reject or spoiler submissions in a private review group; refetch-capable automated submissions can swap candidates, and the replacement still needs human review. |
28
+ | Mini App | Optional web interface: users browse, submit and track their own work; reviewers and admins review, edit and manage. |
29
+ | Search and rankings | `/search` by keyword (with `#tag` and time-range filters), `/tags` for the tag cloud, `/hot` and `/hotweek` for rankings, `/myposts` and `/mystats` for your own submissions and statistics. |
30
+ | Scheduled posts | Commands such as `/schedule add weekly-hot` publish rankings on a schedule. |
31
+ | Automated submissions | Scripts or upstream services submit through the HTTP API; an `idempotency_key` keeps retries from duplicating reviews or publications. |
32
+ | AI-assisted review | Optionally connect AI agents such as Codex or Claude through MCP to read pending submissions and offer review suggestions. |
33
+ | Multiple bots, self-hosted | Run several bots on one machine, each with its own channel, review group, language and data directory. |
34
+
35
+ Default review rules per entry point: [How it works](#how-it-works). Integrations and deployment:
36
+ [More capabilities](#more-capabilities).
37
+
38
+ ## How it works
39
+
40
+ ```text
41
+ Reader submits ──▶ Preview and edit ──▶ Review (per entry point) ──▶ Published to the channel
42
+ ```
43
+
44
+ A reader uploads content in the bot's private chat or the Mini App, then confirms tags, title, note,
45
+ link and the anonymous and spoiler settings in the preview before submitting. Whether it goes
46
+ through review depends on the entry point:
47
+
48
+ | Entry point | Default |
49
+ | --- | --- |
50
+ | Bot private chat | Published after the reader confirms; `CHAT_REVIEW_REQUIRED=true` requires review |
51
+ | Mini App | Review by default; controlled separately by `MINIAPP_REVIEW_REQUIRED` |
52
+ | HTTP API | Always submitted for review; a human must approve |
53
+
54
+ Automated submissions sent through the HTTP API (including PixivFlow and other upstream services)
55
+ must be approved by a human. `API_REVIEW_REQUIRED` is kept for compatibility and cannot turn review
56
+ off for the API. The default setup uses a review group, so `REVIEW_CHAT_ID` is required and must
57
+ not be the same as the channel.
58
+ Full defaults, moderation behaviour and retention are in
59
+ [Configuration](https://github.com/redtidev1918/TelePost/blob/main/docs/en/CONFIGURATION.md#review).
60
+
61
+ ## Download and install
62
+
63
+ Pick the option that matches your environment, then continue with [First run](#first-run).
64
+
65
+ **Standalone program (no Python)** — Take the file for your platform from the
66
+ [download page](https://github.com/redtidev1918/TelePost/blob/main/docs/en/download.md) or
67
+ [Releases](https://github.com/redtidev1918/TelePost/releases/latest):
68
+ `telepost-windows-x64.exe` for Windows x64, `telepost-linux-x64` for Linux x64, and
69
+ `telepost-macos-arm64` for macOS (Apple Silicon). Keep it in one folder and run the setup wizard:
70
+
71
+ ```powershell
72
+ .\telepost-windows-x64.exe --setup
73
+ ```
74
+
75
+ On Linux / macOS, make it executable first:
76
+
77
+ ```bash
78
+ chmod +x telepost-linux-x64
79
+ ./telepost-linux-x64 --setup
80
+ ```
81
+
82
+ **pip (Python 3.10+ already installed)**:
83
+
84
+ ```bash
85
+ python -m pip install telepost-bot
86
+ telepost --setup
87
+ ```
88
+
89
+ The PyPI package is `telepost-bot` and the command it installs is `telepost`. Configuration and data
90
+ stay in the current working directory, so always start from the same one. Installing system
91
+ [libvips](https://github.com/redtidev1918/TelePost/blob/main/docs/en/INSTALL.md#libvips-system-dependency)
92
+ is recommended: without it everything still works, but streaming downscale of very large images is
93
+ unavailable.
94
+
95
+ **Docker (servers or long-running deployments)** — Download or clone the repository, create a
96
+ `.env` in its root (`TOKEN`, `CHANNEL_ID`, `OWNER_ID`, `REVIEW_CHAT_ID` and a pinned
97
+ `TELEPOST_VERSION`), then start:
98
+
99
+ ```bash
100
+ docker compose pull
101
+ docker compose up -d
102
+ ```
103
+
104
+ Upgrades, removal, system dependencies and every setting: [Install and deploy](https://github.com/redtidev1918/TelePost/blob/main/docs/en/INSTALL.md).
105
+ Receiving modes and their public HTTPS requirements: [More capabilities](#more-capabilities).
106
+
107
+ ## First run
108
+
109
+ 1. **Create the bot** — Create it with [@BotFather](https://t.me/BotFather) and keep the token.
110
+ 2. **Prepare the channel and review group** — Add the bot to the publishing channel as an
111
+ administrator with permission to post, then add it to a **separate** private review group and
112
+ check that it can send messages there. The channel ID is either `@username` or a numeric ID
113
+ starting with `-100`; the owner ID is your own numeric Telegram user ID, not a group or channel
114
+ ID.
115
+ 3. **Complete the configuration and start** — The setup wizards of the standalone program and the
116
+ pip package ask only for the token, the channel and the owner ID. Open the generated
117
+ `config.ini`, keep what is there, add the review group under `[BOT]` (save the file as UTF-8),
118
+ then start:
119
+
120
+ ```ini
121
+ [BOT]
122
+ LANGUAGE = en
123
+ REVIEW_CHAT_ID = -1001234567890
124
+ ```
125
+
126
+ Replace the example ID with your review group ID. Start commands: double-click the Windows
127
+ standalone program, or run `./telepost-linux-x64` / `./telepost-macos-arm64` on Linux / macOS;
128
+ `telepost` for pip. Docker users configure the `.env` above — no wizard, no `config.ini`.
129
+ 4. **Make a first submission** — Send `/start` to the bot, tap **📝 New submission** or send
130
+ `/submit`, then upload photos, videos, GIFs, audio or files and send `/done_media` when done to
131
+ reach the preview; for a text-only submission, `/skip_media` skips the upload. Fill in tags and
132
+ text, adjust what you need, and tap **✅ Publish** (the button reads **✅ Submit for review**
133
+ when chat review is on). Send `/cancel` at any point to cancel.
134
+
135
+ All commands: [Command reference](https://github.com/redtidev1918/TelePost/blob/main/docs/en/COMMANDS.md).
136
+
137
+ ## Mini App (optional)
138
+
139
+ The Mini App is a web interface that ships with the same program: readers browse published content,
140
+ submit and follow their own work on a phone; reviewers and admins handle the review queue, edit text
141
+ and attachment order, and manage roles and the blacklist.
142
+
143
+ Enabling it requires a public HTTPS address and `MINIAPP_SESSION_SECRET` set in the environment.
144
+ The web frontend is served by the program's own HTTP service and is currently mounted only in
145
+ Webhook mode. The private-chat entry needs `MINIAPP_ENABLED` on and `MINIAPP_PUBLIC_URL` configured
146
+ (it can be derived from `WEBHOOK_URL`); without the secret, the entry shows but login fails. To
147
+ open it through `?startapp=` links, also configure a Main Mini App in BotFather.
148
+
149
+ Identity comes from Telegram and is verified server-side from `initData`. Opening the URL in a
150
+ normal browser is not a login, and it grants no review or admin rights. Setup steps:
151
+ [Telegram Mini App](https://github.com/redtidev1918/TelePost/blob/main/docs/MINIAPP.md) (Chinese).
152
+
153
+ ## AI-assisted review (MCP, optional)
154
+
155
+ MCP is the protocol AI agents use to call external tools. TelePost can connect to agents such as
156
+ Codex or Claude through [MCP](https://github.com/redtidev1918/TelePost/blob/main/docs/MCP_REVIEW.md)
157
+ (Chinese): they read pending submissions, suggest decisions based on your channel's review policy,
158
+ and perform moderation actions only when you explicitly ask and their permissions allow it.
159
+
160
+ TelePost bundles no language model and never calls an AI to moderate on its own. Keeping both MCP
161
+ and the review API read-only is recommended, leaving the agent advisory only; once write access is
162
+ enabled, get human confirmation before concrete actions — the program does not enforce this step.
163
+ Tool list, tokens and connection setup:
164
+ [MCP review](https://github.com/redtidev1918/TelePost/blob/main/docs/MCP_REVIEW.md) (Chinese).
165
+
166
+ ## More capabilities
167
+
168
+ - **HTTP API** — for scripts and other services to send submissions, sharing the bot's review and
169
+ publishing pipeline; see the example below.
170
+ - **TXT novels and online reading** — TXT is published as a document; TelePress can optionally build
171
+ a Telegraph reading page, and a failure never affects the publication.
172
+ - **Webhook and Polling** — with Polling the bot pulls messages from Telegram and needs no domain
173
+ or public HTTPS; with Webhook, Telegram pushes updates to the bot and a public HTTPS address is
174
+ required. The Mini App also requires public HTTPS.
175
+ - **File type filtering** — executables, common scripts and archives are blocked by default in all
176
+ three submission entry points.
177
+ - **Server deployment** — Docker images and a Fly.io setup; backups and runtime state are covered in
178
+ [Operations](https://github.com/redtidev1918/TelePost/blob/main/docs/OPERATIONS.md) (Chinese).
179
+
180
+ <details>
181
+ <summary>HTTP API submission example</summary>
182
+
183
+ An owner generates a token in the bot with `/gen_token <name>`; the plaintext is shown only once:
184
+
185
+ ```bash
186
+ curl -X POST 'https://example.com/api/v1/submissions' \
187
+ -H 'Authorization: Bearer tp_xxxx' \
188
+ -F 'files=@image.jpg' \
189
+ -F 'title=Example post' \
190
+ -F 'tags=illustration' \
191
+ -F 'idempotency_key=source:123'
192
+ ```
193
+
194
+ Multi-bot deployments use `/api/botN/v1/submissions` instead. Review rules: [How it works](#how-it-works);
195
+ full fields and limits are in [HTTP API](https://github.com/redtidev1918/TelePost/blob/main/docs/en/API.md).
196
+
197
+ </details>
198
+
199
+ ## FAQ
200
+
201
+ <details>
202
+ <summary>Do I need a server and a domain?</summary>
203
+
204
+ You need a machine that stays on. Polling mode with the bot's private chat and a review group
205
+ needs no domain; the public HTTPS requirements of Webhook and the Mini App are in
206
+ [More capabilities](#more-capabilities). See
207
+ [Install and deploy](https://github.com/redtidev1918/TelePost/blob/main/docs/en/INSTALL.md).
208
+
209
+ </details>
210
+
211
+ <details>
212
+ <summary>Why was my private-chat submission published directly?</summary>
213
+
214
+ Private-chat submissions are published after the reader confirms by default. Set
215
+ `CHAT_REVIEW_REQUIRED=true` to send them to the review group first; other entry points are not
216
+ affected. Default behaviour per entry point: [How it works](#how-it-works).
217
+
218
+ </details>
219
+
220
+ <details>
221
+ <summary>Why doesn't the Mini App show up?</summary>
222
+
223
+ First check that `MINIAPP_ENABLED` is on and the entry URL is configured, then that the page is
224
+ reachable in Webhook mode. If the entry shows but login fails, check `MINIAPP_SESSION_SECRET` in
225
+ the environment and open the app from inside Telegram. Enabling conditions:
226
+ [Mini App](#mini-app-optional); troubleshooting steps:
227
+ [Telegram Mini App](https://github.com/redtidev1918/TelePost/blob/main/docs/MINIAPP.md) (Chinese).
228
+
229
+ </details>
230
+
231
+ <details>
232
+ <summary>Why does the bot not respond?</summary>
233
+
234
+ Check that only one instance uses the bot token, then look at the process, the recent logs and
235
+ `/health`; in Webhook mode also check `getWebhookInfo`. Running the source, a container and an old
236
+ machine at the same time causes a Polling conflict. See
237
+ [Troubleshooting](https://github.com/redtidev1918/TelePost/blob/main/docs/TROUBLESHOOTING.md#bot-完全无响应) (Chinese).
238
+
239
+ </details>
240
+
241
+ <details>
242
+ <summary>Where are submission files stored?</summary>
243
+
244
+ By default under `data/` (for a pip install, in the working directory where the command starts):
245
+ the submission database `submissions.db`, session state `persistence.pickle`, runtime policy
246
+ `runtime-policy.json`, the search index `search_index` and API temporary uploads `api_uploads/`;
247
+ multiple bots use `data/botN/`. Media itself stays on Telegram's side and the database only stores
248
+ references. Back up and keep the whole `data/` directory when upgrading or moving; backup method:
249
+ [Operations](https://github.com/redtidev1918/TelePost/blob/main/docs/OPERATIONS.md#持久数据) (Chinese).
250
+
251
+ </details>
252
+
253
+ <details>
254
+ <summary>Will MCP approve content for me?</summary>
255
+
256
+ Whether it can depends on permissions: `TELEPOST_MCP_REVIEW_MODE=readonly` does not register the
257
+ moderation write tools, and `TELEPOST_REVIEW_API_MODE=readonly` rejects writes server-side. Keeping
258
+ both layers read-only is recommended; for the human-confirmation expectation after enabling writes,
259
+ see [AI-assisted review](#ai-assisted-review-mcp-optional). Full configuration:
260
+ [MCP review](https://github.com/redtidev1918/TelePost/blob/main/docs/MCP_REVIEW.md) (Chinese).
261
+
262
+ </details>
263
+
264
+ ## Documentation
265
+
266
+ Documentation site: <https://redtidev1918.github.io/TelePost/#/en/>
267
+
268
+ - Install, upgrade, remove — [Install and deploy](https://github.com/redtidev1918/TelePost/blob/main/docs/en/INSTALL.md)
269
+ - Commands and required permissions — [Command reference](https://github.com/redtidev1918/TelePost/blob/main/docs/en/COMMANDS.md)
270
+ - Settings, review defaults, multiple bots — [Configuration](https://github.com/redtidev1918/TelePost/blob/main/docs/en/CONFIGURATION.md)
271
+ - Web submission and review UI — [Telegram Mini App](https://github.com/redtidev1918/TelePost/blob/main/docs/MINIAPP.md) (Chinese)
272
+ - Scripts and automated submissions — [HTTP API](https://github.com/redtidev1918/TelePost/blob/main/docs/en/API.md)
273
+ - AI agents in review — [MCP review](https://github.com/redtidev1918/TelePost/blob/main/docs/MCP_REVIEW.md) (Chinese)
274
+ - Receiving modes and reverse proxies — [Webhook and Polling](https://github.com/redtidev1918/TelePost/blob/main/docs/WEBHOOK_MODE.md) (Chinese)
275
+ - Deploying to Fly.io — [Fly.io deployment](https://github.com/redtidev1918/TelePost/blob/main/docs/FLYIO_DEPLOYMENT.md) (Chinese)
276
+ - Backups, upgrades, runtime state — [Operations](https://github.com/redtidev1918/TelePost/blob/main/docs/OPERATIONS.md) (Chinese)
277
+ - Unresponsive bot, failed upload or publish — [Troubleshooting](https://github.com/redtidev1918/TelePost/blob/main/docs/TROUBLESHOOTING.md) (Chinese)
278
+ - Memory and capacity — [Performance](https://github.com/redtidev1918/TelePost/blob/main/docs/PERFORMANCE.md) (Chinese)
279
+ - Development and testing — [Testing guide](https://github.com/redtidev1918/TelePost/blob/main/docs/TESTING.md) (Chinese), [Contributing](https://github.com/redtidev1918/TelePost/blob/main/CONTRIBUTING.md) (Chinese)
280
+
281
+ ## Related projects
282
+
283
+ - [PixivFlow](https://github.com/redtidev1918/PixivFlow) — Pixiv downloading, filtering and
284
+ automated collection; it can submit work to TelePost through the HTTP API.
285
+ - [pixivflow-telepost-deploy](https://github.com/redtidev1918/pixivflow-telepost-deploy) — a
286
+ combined PixivFlow + TelePost deployment.
287
+
288
+ Both are optional integrations, not runtime dependencies of TelePost.
289
+
290
+ ## License
291
+
292
+ [MIT License](https://github.com/redtidev1918/TelePost/blob/main/LICENSE)