Major improvement, security handling, file handling +fixes
This commit is contained in:
@@ -141,10 +141,14 @@ Users click the deep link or send:
|
||||
- Posts a review message to the `review_group_id` with inline buttons:
|
||||
- `[ Approve ]` → callback `v1:fwd:approve:{submission_id}`
|
||||
- `[ Ignore ]` → callback `v1:fwd:ignore:{submission_id}`
|
||||
- `[ Blacklist User ]` → callback `v1:fwd:blk:{submission_id}`
|
||||
- `[ Blackl. ]` → callback `v1:fwd:blk:{submission_id}`
|
||||
- `[ Ban ]` → callback `v1:fwd:ban:{submission_id}`
|
||||
- `[ Ban/BL u. ]` → callback `v1:fwd:banblk:{submission_id}`
|
||||
- Stores the sent message ID back into `forward_submissions.review_message_id`.
|
||||
4. **Review** — Moderators in the review group click the buttons to act.
|
||||
|
||||
**Note:** Media batching is implemented for both review group presentation and approved destination posts. The bot decrypts and sends up to 10 files per media group, attaching the review text or approval caption to the last item.
|
||||
|
||||
---
|
||||
|
||||
## Review Actions
|
||||
@@ -176,6 +180,21 @@ All review callbacks require the clicking user to be an **administrator in the r
|
||||
3. Sets `forward_submissions.status = 'blacklisted'`.
|
||||
4. The user is now blocked from using this forward link again (until removed).
|
||||
|
||||
### Ban (`v1:fwd:ban`)
|
||||
|
||||
1. Bans the submitter in both the destination chat and the review group.
|
||||
2. Records `ban` punishments in the `punishments` table for both chats.
|
||||
3. Edits the review message to show `[ BANNED ]` and the moderator ID.
|
||||
4. Sets `forward_submissions.status = 'banned'`.
|
||||
|
||||
### Ban + Blacklist (`v1:fwd:banblk`)
|
||||
|
||||
1. Bans the submitter in both the destination chat and the review group (same as `v1:fwd:ban`).
|
||||
2. Records `ban` punishments in the `punishments` table for both chats.
|
||||
3. Also adds the submitter to `forward_lists` with `list_type = 'blacklist'` (same as `v1:fwd:blk`).
|
||||
4. Edits the review message to show `[ BAN/BL ]` and the moderator ID.
|
||||
5. Sets `forward_submissions.status = 'banblk'`.
|
||||
|
||||
---
|
||||
|
||||
## Management Commands
|
||||
|
||||
Reference in New Issue
Block a user