fix(tradein): startup topic-check реально валидирует message_thread_id #3513
No reviewers
Labels
No labels
Fable 5 ревью
GG-форсайт
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
feedback/max
generative
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
ИРД
вторичка
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#3513
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/3471-topic-check-really-validates"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
sendChatActionне валидируетmessage_thread_id— живой прод-замер (#3471) показал, что она подтверждает даже заведомо несуществующую тему ({"ok":true,"result":true}).verify_chat_and_topicбыла ложно-зелёной ровно в сценарии, ради которого её писали: удалённая/переименованная тема проходила проверку, а реальная отправка потом падала на каждом сообщении.sendMessage+deleteMessage:sendMessageс несуществующимmessage_thread_idмгновенно отвечает400 Bad Request: message thread not found(тоже проверено на проде), а с валидным создаёт сообщение, которое сразу стираетсяdeleteMessage— в истории треда не остаётся ничего.send_chat_action, утверждавший обратное.bool, не роняет процесс).Test plan
sendMessageс мусорнымmessage_thread_id=987654->400 message thread not found; с валиднымmessage_thread_id=2(support) -> успех, зонд-сообщение сразу удаленоdeleteMessage.test_verify_chat_and_topic_is_red_when_topic_deleted_even_though_send_chat_action_liesявно проверен на падение против до-фиксной реализации (git checkout HEAD -- client.py+ прогон теста ->assert True is False), затем зелёный после возврата фикса.pytest tests/services/tgbot/test_topic_check_and_group_rate_limit.py tests/test_alerts_become_events.py-- 34 passed.ruff checkна изменённые файлы -- чисто.Closes #3471
🤖 Generated with Claude Code
https://claude.ai/code/session_01JY6iWDnGDthdvsMWgK1BMG