Skip to content

Require QuantX channel membership - #1

Draft
Moli-X wants to merge 1 commit into
mainfrom
agent/require-quantx-membership
Draft

Require QuantX channel membership#1
Moli-X wants to merge 1 commit into
mainfrom
agent/require-quantx-membership

Conversation

@Moli-X

@Moli-X Moli-X commented Aug 5, 2026

Copy link
Copy Markdown
Owner

What changed

  • Check each non-admin sender with Telegram getChatMember before processing messages.
  • Block unverified, departed, or banned users and show an inline button linking to @QuantX.
  • Apply the same gate to both Worker entrypoints.
  • Fail closed when Telegram membership verification is unavailable.

Why

Only users who follow the @QuantX channel should be able to use the bot's replies and message forwarding.

Validation

  • node --check Bot.js
  • node --check Config/Script/Worker.js
  • Membership status tests for creator, administrator, member, restricted, left, and kicked
  • git diff --check

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