@pachca/cli 2026.6.0 → 2026.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +11 -10
- package/dist/commands/bots/create.js +33 -9
- package/dist/commands/bots/get.js +1 -1
- package/dist/commands/bots/update-webhook.js +72 -0
- package/dist/commands/bots/update.js +29 -33
- package/dist/commands/chats/update.js +1 -1
- package/dist/commands/profile/delete-avatar.js +1 -1
- package/dist/commands/profile/delete-status.js +1 -1
- package/dist/commands/profile/get-status.js +1 -1
- package/dist/commands/profile/get.js +1 -1
- package/dist/commands/profile/update-avatar.js +1 -1
- package/dist/commands/profile/update-status.js +1 -1
- package/dist/commands/users/create.js +1 -1
- package/dist/data/alternatives.json +11 -10
- package/dist/data/changelog.json +21 -0
- package/dist/data/endpoints.json +1 -1
- package/dist/data/workflows.json +9 -5
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/dist/data/workflows.json
CHANGED
|
@@ -380,8 +380,8 @@
|
|
|
380
380
|
"skill": "pachca-bots",
|
|
381
381
|
"steps": [
|
|
382
382
|
{
|
|
383
|
-
"description": "Создай бота. Только пользовательским токеном (не токеном бота); `nickname` обязан заканчиваться на `_bot`. Параметры вебхука (Webhook URL, события, команды) можно задать сразу или
|
|
384
|
-
"command": "pachca bots create --
|
|
383
|
+
"description": "Создай бота. Только пользовательским токеном (не токеном бота); `nickname` обязан заканчиваться на `_bot`. Параметры вебхука (Webhook URL, события, команды) можно задать сразу или позже. Скоупы токена бота можно ограничить флагом `--scopes` (если не указать — бот получит набор по умолчанию)",
|
|
384
|
+
"command": "pachca bots create --name=\"Бот задач\" --nickname=\"tasks_bot\" --scopes='[\"messages:create\"]'"
|
|
385
385
|
}
|
|
386
386
|
]
|
|
387
387
|
},
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
"steps": [
|
|
392
392
|
{
|
|
393
393
|
"description": "Создай бота, сразу указав Webhook URL и события в одном вызове (детали создания и работы с токеном — в сценарии «Создать бота через API и получить токен»)",
|
|
394
|
-
"command": "pachca bots create --
|
|
394
|
+
"command": "pachca bots create --name=\"Бот задач\" --nickname=\"tasks_bot\" --outgoing-url=\"https://example.com/webhook\" --events='[\"message_new\"]' --trigger-on=commands --commands='[\"/task\"]'"
|
|
395
395
|
}
|
|
396
396
|
]
|
|
397
397
|
},
|
|
@@ -400,9 +400,13 @@
|
|
|
400
400
|
"skill": "pachca-bots",
|
|
401
401
|
"steps": [
|
|
402
402
|
{
|
|
403
|
-
"description": "
|
|
404
|
-
"command": "pachca bots update <bot_id> --
|
|
403
|
+
"description": "Пользовательским токеном (с правом редактировать бота) — обнови URL по `id` бота. Пустая строка отключает вебхук",
|
|
404
|
+
"command": "pachca bots update <bot_id> --outgoing-url=\"https://example.com/webhook\"",
|
|
405
405
|
"notes": "`id` бота (его `user_id`) можно узнать во вкладке «API» настроек бота"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"description": "Или: бот сам обновляет свой webhook своим же токеном — без `id` и без участия администратора (нужен скоуп `bot_self:webhook:write`)",
|
|
409
|
+
"command": "pachca bots update-webhook --outgoing-url=\"https://example.com/webhook\""
|
|
406
410
|
}
|
|
407
411
|
]
|
|
408
412
|
},
|