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:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user