Remove non-functional MAX auto-reaction, add real TG auto-reaction

MAX Bot API has no reaction endpoint (confirmed 404 in production logs),
so drop the dead code path entirely instead of eating a warning every post.

Telegram's setMessageReaction is a real Bot API method (verified against
aiogram 3.21.0, the pinned version) - wire it up as a non-fatal
best-effort call after a successful send, mirroring the same
try/except-and-log pattern MAX already used.
This commit is contained in:
2026-08-14 22:14:31 +05:00
parent 6a7a995d5f
commit be01558ddb
4 changed files with 22 additions and 23 deletions
+3 -3
View File
@@ -39,9 +39,6 @@ MAX_BOT_TOKEN=your_max_bot_token_here
MAX_CHAT_ID=123456
# MAX API Base URL
MAX_API_BASE_URL=https://platform-api2.max.ru
# MAX Auto Reaction emoji on published post
MAX_AUTO_REACTION=👍
MAX_AUTO_REACTION_ENABLED=true
# ==========================================
# Polling, Reporting & Maintenance
@@ -83,6 +80,9 @@ FOOTER_TEXT=
COMMON_TAGS=#redairsoft #страйкбол
# Make the first line of the post bold
FORMAT_FIRST_LINE_BOLD=true
# Telegram auto-reaction emoji on published posts (real Bot API method, unlike MAX)
TG_AUTO_REACTION=👍
TG_AUTO_REACTION_ENABLED=true
# Logging Level (DEBUG, INFO, WARNING, ERROR)
LOG_LEVEL=INFO