Skip to content

Cache notification messages for reaction context - #50

Closed
constkolesnyak wants to merge 1 commit into
ClickHouse:mainfrom
constkolesnyak:fix/cache-notification-reactions
Closed

Cache notification messages for reaction context#50
constkolesnyak wants to merge 1 commit into
ClickHouse:mainfrom
constkolesnyak:fix/cache-notification-reactions

Conversation

@constkolesnyak

Copy link
Copy Markdown
Contributor

Summary

  • Notifications sent via NotificationService._deliver_telegram() bypassed TelegramChannel.send() and went directly through bot.send_message(), so they were never stored in _message_cache
  • When reacting to a notification, the reaction handler couldn't find the original text — showed [Reaction: 👎] without context instead of [Reaction: 👎 on message: "..."]
  • Added _get_telegram_channel() helper and a _cache_message() call after sending, covering both regular and inline (question) notifications

🤖 Generated with Claude Code

Notifications sent via NotificationService._deliver_telegram() bypassed
TelegramChannel.send() and went directly through bot.send_message(),
so they were never stored in _message_cache. When a user reacted to a
notification, the reaction handler couldn't find the original text and
only showed "[Reaction: 👎]" without context.

Now _deliver_telegram caches sent messages via channel._cache_message()
so reactions on notifications include the message text.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant