feat: add /admin command to list room admins #64

Closed
shoko wants to merge 1 commits from feat/issue-50-list-room-admins into main
Owner

Summary

Implement /admin command as specified in issue #50:

  • Lists all admin user IDs for the current room
  • Output format: Room Admins:\n- @user1\n- @user2
  • Shows No admins configured for this room. if none exist
  • Available to everyone (no permission check needed)

Changes

  • apps/telegram-bot/commands.py: Add cmd_admin function
  • apps/telegram-bot/bot.py: Register CommandHandler("admin", cmd_admin) and add to command menu

Testing

/admin
Room Admins:
- @123456789
- @987654321

Closes #50

## Summary Implement /admin command as specified in issue #50: - Lists all admin user IDs for the current room - Output format: `Room Admins:\n- @user1\n- @user2` - Shows `No admins configured for this room.` if none exist - Available to everyone (no permission check needed) ## Changes - `apps/telegram-bot/commands.py`: Add `cmd_admin` function - `apps/telegram-bot/bot.py`: Register `CommandHandler("admin", cmd_admin)` and add to command menu ## Testing ``` /admin Room Admins: - @123456789 - @987654321 ``` Closes #50
shoko added 1 commit 2026-04-04 08:52:42 +02:00
Implement /admin command as specified in issue #50:
- Lists all admin user IDs for the current room
- Output format: 'Room Admins:\n- @user1\n- @user2'
- Shows 'No admins configured for this room.' if none exist
- Available to everyone (no permission check needed)

Changes:
- Add cmd_admin function to commands.py
- Register CommandHandler('admin', cmd_admin) in bot.py
- Add /admin to command menu in post_init
- Update /help to include /admin command

Closes #50
shoko closed this pull request 2026-04-04 09:20:10 +02:00

Pull request closed

Sign in to join this conversation.