Разбить index.js — заменить if/else роутер на Map-диспетчер #84
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Проблема
index.js— 390 строк с 217-строчным if/else для callback queries.Решение
src/router/callbackRouter.js— Map prefix → handlersrc/router/messageRouter.js— Map command → handlerrouter.register("admin_product_", createHandler)Приоритет: ВЫСОКИЙ
Дубликат ишьюса #53. Закрываю как дубликат.