feat: implement /recover command and fix /admin list #83
Reference in New Issue
Block a user
Delete Branch "fix/issue-49-50-recover-admin-list"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements
/recovercommand for Telegram bot and fixes/admin listdisplay to show @username instead of admin_id.Changes
New Features
/recoverCommand (Issue #49)/recover- List recoverable (soft-deleted) bounties, sorted by deletion time (admin only)/recover <id> [<id>...]- Recover specific bounty(ies) by ID (admin only)Example output for
/recover:Bug Fixes
/admin list(Issue #50)@usernameinstead ofadmin_id:{uid}Example output:
Files Changed
core/services.py- Addedget_deleted_bounty,recover_bounty,recover_bountiesmethodsapps/telegram-bot/commands.py- Addedcmd_recover, fixedcmd_adminlistapps/telegram-bot/bot.py- Added recover handler, updated command menuTesting
lgtm