Skip to content

fix: reject Telegram messages from unauthorized chats - #5

Merged
eddmann merged 1 commit into
mainfrom
claude/secure-telegram-chat-XCgJ0
Mar 7, 2026
Merged

fix: reject Telegram messages from unauthorized chats#5
eddmann merged 1 commit into
mainfrom
claude/secure-telegram-chat-XCgJ0

Conversation

@eddmann

@eddmann eddmann commented Mar 7, 2026

Copy link
Copy Markdown
Owner

No description provided.

Add grammy middleware that silently drops incoming messages when
the chat ID doesn't match TELEGRAM_CHAT_ID. This prevents
unauthorized users from accessing the bot's tools and agent.
The guard is a no-op when TELEGRAM_CHAT_ID is unset.

https://claude.ai/code/session_01DPVMtufRScy6tgmSbfRU5s
@eddmann
eddmann merged commit bfe5064 into main Mar 7, 2026
2 checks passed
@eddmann
eddmann deleted the claude/secure-telegram-chat-XCgJ0 branch March 7, 2026 09:08
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.

2 participants