Skip to content

CS Wiki Edit Bot

Abrash Mikhail edited this page May 18, 2020 · 6 revisions

About

Telegram link: @cs_wiki_edit_bot

Deploy

Require telegramBots/editBot/.env file to successfully start container specified in docker-compose.yml

.env file should contain:

TG_TOKEN=<TOKEN>
API_HOST=
API_PORT=

Optionally it can contain proxy configuration. Bot use proxy only if PROXY_URL provided.

PROXY_URL=
PROXY_LOGIN=
PROXY_PASSWORD=

Only HTTP proxies available.

Usage

Use /login command to get permissions assigned to your role.

Editing

At first you should choose what object to edit, there are 3 options:

  • type name OBJECT or /name OBJECT to search for item with name "OBJECT"
  • type id 12345 or /id 12345 to search for item with id "12345"
  • use inline mod of @cs_wiki_search_bot

Then you should confirm your choice and choose field to edit. Bot offers keyboard with existing fields of this item, you can type your own to create new.

Then you should send new value for this field. It will REPLACE (even arrays) old value.
Send text message to update text field.
Send photo/video/voice/audio/document to add them to list. At the end press "Finish" button (or just type finish) to update media content field (for example "attachments").
Send commas-separated values to set new text array field.

Creating

Type /create command and follow the instructions.
Type Done to end creating item and submit it

Clone this wiki locally