forked from riffi/hermes-max-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.yaml
More file actions
51 lines (51 loc) · 2.3 KB
/
Copy pathplugin.yaml
File metadata and controls
51 lines (51 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: max
kind: platform
version: 1.0.0
description: Max Messenger platform adapter (https://max.ru). Supports webhook or long-polling inbound, text, attachments, images, files, voice messages, inline keyboards.
requires_env:
- MAX_BOT_TOKEN
optional_env:
- name: MAX_TRANSPORT
description: "Inbound transport: webhook or polling. Defaults to webhook when MAX_WEBHOOK_URL is set, otherwise polling."
prompt: "MAX transport"
password: false
- name: MAX_WEBHOOK_URL
description: "Public HTTPS webhook URL registered with MAX, e.g. https://example.com/max/webhook. MAX requires port 443 externally."
prompt: "MAX public webhook URL"
password: false
- name: MAX_WEBHOOK_SECRET
description: "Secret sent by MAX in X-Max-Bot-Api-Secret for webhook requests. Allowed by MAX: A-Z, a-z, 0-9, underscore, hyphen; 5-256 chars."
prompt: "MAX webhook secret"
password: true
- name: MAX_WEBHOOK_HOST
description: "Local webhook bind host (default: 0.0.0.0). Use a reverse proxy from 443 to this listener."
prompt: "MAX webhook bind host"
password: false
- name: MAX_WEBHOOK_PORT
description: "Local webhook listen port (default: 8650). Public MAX endpoint must still be HTTPS on 443."
prompt: "MAX webhook port"
password: false
- name: MAX_WEBHOOK_PATH
description: "Local webhook path (default: /max/webhook). Must match the path in MAX_WEBHOOK_URL."
prompt: "MAX webhook path"
password: false
- name: MAX_UPDATE_TYPES
description: "Comma-separated MAX update types to subscribe to (default: message_created,message_callback,bot_started)."
prompt: "MAX update types"
password: false
- name: MAX_API_BASE_URL
description: "MAX Bot API base URL (default: https://platform-api.max.ru). Useful for tests, proxies, or compatible endpoints."
prompt: "MAX API base URL"
password: false
- name: MAX_ALLOWED_USERS
description: "Comma-separated MAX user IDs allowed to talk to the bot."
prompt: "Allowed MAX users"
password: false
- name: MAX_ALLOW_ALL_USERS
description: "Allow any MAX user to trigger the bot (dev only)."
prompt: "Allow all MAX users? (true/false)"
password: false
- name: MAX_HOME_CHANNEL
description: "Default MAX chat ID for cron / notification delivery."
prompt: "MAX home channel"
password: false