Skip to content

User Management

Block specific users from accessing the bot.

Terminal window
BLOCKED_TELEGRAM_IDS=123456789,987654321,555555555
  1. Get their Telegram ID
  2. Add to BLOCKED_TELEGRAM_IDS
  3. Restart bot: docker compose down && docker compose up -d
  • Spammers or abusers
  • Users attempting fraud
  • Accounts that violate ToS
  • Suspicious activity

Users can find their ID:

  • Send message to @userinfobot
  • Copy the ID returned
  • Share with admin (if needed)

Allow specific users to bypass security checks.

Terminal window
WHITELISTED_TELEGRAM_IDS=111111111,222222222,333333333
  1. Get Telegram ID (see above)
  2. Add to WHITELISTED_TELEGRAM_IDS
  3. Changes take effect immediately
  • Service accounts
  • Staff members
  • Verified partners
  • Legitimate bots
  • VIP customers
Blocked IDs > Whitelist > Security Checks

If a user is in both blocked and whitelist, they are blocked.

The bot automatically detects suspicious accounts:

CheckDescription
Keyword AnalysisPhishing/fraud patterns
Account NamesService vs suspicious
CombinationsDangerous keyword pairs
Service RecognitionAllow @CompanySupportAdmin

If legitimate users are blocked:

  1. Get their Telegram ID
  2. Add to WHITELISTED_TELEGRAM_IDS
  3. Restart bot if needed
  4. Report issue on GitHub
New User
Security Check
├─ Blocked → Denied
├─ Whitelisted → Allowed
└─ Check filters
├─ Suspicious → Denied
└─ OK → Allowed
Terminal window
# Block known spammers
BLOCKED_TELEGRAM_IDS=123456789,987654321
# Only allow staff
WHITELISTED_TELEGRAM_IDS=111111111,222222222,333333333
Terminal window
# No blocked users
BLOCKED_TELEGRAM_IDS=
# Whitelist for staff
WHITELISTED_TELEGRAM_IDS=111111111
Terminal window
# Block specific troublemakers
BLOCKED_TELEGRAM_IDS=999999999
# Trust partners
WHITELISTED_TELEGRAM_IDS=111111111,222222222

Check logs for user access attempts:

Terminal window
docker compose logs remnawave-telegram-shop-bot | grep "user\|access\|security"

Look for:

  • Access denied messages
  • Failed authentications
  • Suspicious patterns
  • Repeated attempts
  1. Review Regularly - Update lists quarterly
  2. Document Changes - Keep notes of why users blocked
  3. Archive History - Track decisions for appeals
  4. Monitor Activity - Watch for abuse patterns
  5. Trust Partnership - Communicate with trusted users
  • Clear browser cache
  • Check configuration format (commas, no spaces)
  • Verify restart completed
  • Check logs for errors
  • Changes need restart? For blocked IDs yes
  • Whitelist changes are immediate
  • Verify ID format (numeric only)
  • Check for typos
  • Adjust security settings
  • Whitelist legitimate accounts
  • Update bot to latest version
  • Report to GitHub

Users blocked by mistake can:

  1. Contact administrator
  2. Provide explanation
  3. Get whitelisted or unblocked
  4. Admin documents reason