Skip to content

Add /closecommunity command for superadmins #804

@mostronatorcoder

Description

@mostronatorcoder

Summary

Add a new /closecommunity command so superadmins can close a community by community ID or Telegram group handle.

Examples:

  • /closecommunity 09f258490ac3d
  • /closecommunity @GrupoComunidad

Requirements

  • Command must be restricted to superadmins using validateSuperadmin.
  • Accept either a community ID or the community group/username as input.
  • After resolving the target community, send a confirmation wizard to the admin showing:
    • Community name
    • Completed orders
    • Creator: @Creador
    • Solvers: @Solver1, @Solver2, ...
  • Confirmation text:
    Comunidad <nombre comunidad>
    Ordenes completadas:
    Creador: @Creador
    Solvers: @Solver1, @Solver2, etc..
    Esta seguro que desea continuar?
    
  • Include buttons:
    • Continuar
    • Cancelar
  • If the admin presses Continuar, send a message to the community owner notifying them that an administrator closed their community, for example:
    • un administrador ha cerrado tu comunidad @NombreComm

Notes

  • The command should perform the actual close flow only after explicit confirmation from the superadmin.
  • The owner notification should only be sent after a successful confirmation and close action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions