@alex_rexby/n8n-nodes-max 0.4.21 → 0.4.23
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/README.md +127 -83
- package/dist/nodes/Max/Max.node.js +101 -429
- package/dist/nodes/Max/Max.node.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,119 +1,163 @@
|
|
|
1
1
|
# n8n-nodes-max
|
|
2
2
|
|
|
3
|
-
This is an n8n community node for MAX
|
|
3
|
+
This is an n8n community node for [MAX Messenger](https://max.team/) API integration.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
[MAX](https://max.team/) is a Russian messenger platform. This node allows you to interact with MAX Messenger API directly from n8n workflows.
|
|
8
|
+
|
|
9
|
+
[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
|
|
6
10
|
|
|
7
11
|
## Installation
|
|
8
12
|
|
|
9
|
-
Follow the installation guide in the n8n community nodes documentation.
|
|
13
|
+
Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
|
|
14
|
+
|
|
15
|
+
### Quick Install
|
|
10
16
|
|
|
11
|
-
1. Go to **Settings > Community Nodes**
|
|
12
|
-
2.
|
|
17
|
+
1. Go to **Settings** > **Community Nodes** in your n8n instance
|
|
18
|
+
2. Select **Install**
|
|
13
19
|
3. Enter `@alex_rexby/n8n-nodes-max`
|
|
14
20
|
4. Click **Install**
|
|
15
21
|
|
|
16
|
-
Or install via npm
|
|
22
|
+
Or install via npm:
|
|
17
23
|
|
|
18
24
|
npm install @alex_rexby/n8n-nodes-max
|
|
19
25
|
|
|
20
|
-
## Operations
|
|
21
|
-
|
|
22
|
-
### Message Resource
|
|
23
|
-
|
|
24
|
-
* **Send Text** - Send a text message to a user
|
|
25
|
-
* **Send with Media** - Send message with file (image, video, audio, document)
|
|
26
|
-
* **Get** - Get a message by ID
|
|
27
|
-
* **Edit** - Edit an existing message
|
|
28
|
-
* **Delete** - Delete a message
|
|
29
|
-
|
|
30
|
-
### Bot Resource
|
|
31
|
-
|
|
32
|
-
* **Get Info** - Get information about your bot
|
|
33
|
-
|
|
34
|
-
### Chat Resource
|
|
35
|
-
|
|
36
|
-
* **Update** - Update chat information (title, description)
|
|
37
|
-
|
|
38
|
-
### Callback Resource
|
|
39
|
-
|
|
40
|
-
* **Answer** - Answer callback query (button click notification)
|
|
41
|
-
* **Answer and Send Message** - Answer callback and send a new message
|
|
42
|
-
|
|
43
|
-
### Webhook Trigger
|
|
44
|
-
|
|
45
|
-
* **MAX Trigger** - Receive webhooks from MAX messenger (messages, callbacks, etc.)
|
|
46
|
-
|
|
47
26
|
## Credentials
|
|
48
27
|
|
|
49
|
-
You need
|
|
50
|
-
|
|
51
|
-
1. Contact @maxbot in MAX messenger
|
|
52
|
-
2. Create a new bot and get the API token
|
|
53
|
-
3. In n8n, create new credentials for MAX API
|
|
54
|
-
4. Enter your bot token
|
|
55
|
-
|
|
56
|
-
## Usage
|
|
57
|
-
|
|
58
|
-
### Send a Simple Message
|
|
28
|
+
You need a **MAX Bot Token** to use this node.
|
|
59
29
|
|
|
60
|
-
1.
|
|
61
|
-
2.
|
|
62
|
-
3.
|
|
63
|
-
|
|
64
|
-
|
|
30
|
+
1. Create a bot via [MAX Bot API](https://dev.max.ru/docs/chatbots/)
|
|
31
|
+
2. Get your bot token
|
|
32
|
+
3. In n8n, create a new credential:
|
|
33
|
+
- Type: **MAX API**
|
|
34
|
+
- Token: Your bot token
|
|
65
35
|
|
|
66
|
-
|
|
36
|
+
## Operations
|
|
67
37
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
38
|
+
### MAX Node
|
|
39
|
+
|
|
40
|
+
**Resources:**
|
|
41
|
+
- **Message**
|
|
42
|
+
- Send Text - Send text message to user or channel
|
|
43
|
+
- Send with Media - Send message with file (image, video, audio, document)
|
|
44
|
+
- Get - Get message by ID
|
|
45
|
+
- Edit - Edit existing message
|
|
46
|
+
- Delete - Delete message
|
|
47
|
+
|
|
48
|
+
- **Bot**
|
|
49
|
+
- Get Info - Get bot information
|
|
50
|
+
|
|
51
|
+
- **Chat**
|
|
52
|
+
- Update - Update chat information (title, description)
|
|
53
|
+
|
|
54
|
+
- **Callback**
|
|
55
|
+
- Answer - Answer callback query (inline button click)
|
|
56
|
+
- Answer and Send Message - Answer callback and send a new message
|
|
57
|
+
|
|
58
|
+
**Features:**
|
|
59
|
+
- ✅ Send messages to **users** (user_id) or **channels/groups** (chat_id with `-` prefix)
|
|
60
|
+
- ✅ Inline keyboard buttons (simple visual builder or advanced JSON)
|
|
61
|
+
- ✅ File attachments (images, videos, audio, documents)
|
|
62
|
+
- ✅ Message formatting (Markdown, HTML)
|
|
63
|
+
- ✅ Reply to messages
|
|
64
|
+
- ✅ Silent messages
|
|
65
|
+
- ✅ Disable link preview
|
|
66
|
+
|
|
67
|
+
### MAX Trigger Node
|
|
68
|
+
|
|
69
|
+
Webhook-based trigger for receiving events from MAX Messenger.
|
|
70
|
+
|
|
71
|
+
**Event Modes:**
|
|
72
|
+
- **All Events** - Receive all events from MAX API (recommended for testing)
|
|
73
|
+
- **Specific Events** - Filter by event types:
|
|
74
|
+
- Message Created
|
|
75
|
+
- Message Callback (inline button clicks)
|
|
76
|
+
- Bot Started
|
|
77
|
+
|
|
78
|
+
**Usage:**
|
|
79
|
+
1. Add MAX Trigger node to your workflow
|
|
80
|
+
2. Configure credentials
|
|
81
|
+
3. Select event mode
|
|
82
|
+
4. Activate workflow
|
|
83
|
+
5. Webhook URL will be automatically registered with MAX API
|
|
84
|
+
|
|
85
|
+
## Examples
|
|
86
|
+
|
|
87
|
+
### Send Text Message to User
|
|
88
|
+
|
|
89
|
+
User ID: `4624138`
|
|
90
|
+
Text: `Hello from n8n!`
|
|
91
|
+
|
|
92
|
+
### Send Message to Channel
|
|
93
|
+
|
|
94
|
+
User ID / Chat ID: `-70931657203722`
|
|
95
|
+
Text: `New announcement!`
|
|
96
|
+
|
|
97
|
+
### Send Image with Caption
|
|
98
|
+
|
|
99
|
+
User ID: `4624138`
|
|
100
|
+
Binary Property: `data`
|
|
101
|
+
Caption: `Check out this image!`
|
|
74
102
|
|
|
75
103
|
### Send Message with Buttons
|
|
76
104
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
5. Add button rows and configure buttons
|
|
82
|
-
|
|
83
|
-
### Receive Webhooks (Trigger)
|
|
105
|
+
User ID: `4624138`
|
|
106
|
+
Text: `Choose an option:`
|
|
107
|
+
Add Buttons: `true`
|
|
108
|
+
Button Mode: `Simple (Visual)`
|
|
84
109
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
5. Workflow will trigger on incoming events
|
|
110
|
+
**Button 1:**
|
|
111
|
+
- Text: `Option A`
|
|
112
|
+
- Type: `Callback`
|
|
113
|
+
- Callback Data: `option_a`
|
|
90
114
|
|
|
91
|
-
|
|
115
|
+
**Button 2:**
|
|
116
|
+
- Text: `Visit Website`
|
|
117
|
+
- Type: `Link`
|
|
118
|
+
- URL: `https://example.com`
|
|
92
119
|
|
|
93
|
-
|
|
94
|
-
2. Filter by event type: `callback_query`
|
|
95
|
-
3. Use **MAX** → **Callback** → **Answer** to acknowledge
|
|
96
|
-
4. Optionally send a new message
|
|
120
|
+
### Webhook Trigger Example
|
|
97
121
|
|
|
98
|
-
|
|
122
|
+
1. Add MAX Trigger node
|
|
123
|
+
2. Select "All Events"
|
|
124
|
+
3. Connect to IF node to filter by `update_type`
|
|
125
|
+
4. Process different event types accordingly
|
|
99
126
|
|
|
100
|
-
|
|
127
|
+
## Compatibility
|
|
101
128
|
|
|
102
|
-
|
|
129
|
+
- n8n version: 1.0.0+
|
|
130
|
+
- Tested with n8n 2.1.4
|
|
103
131
|
|
|
104
|
-
|
|
132
|
+
## Resources
|
|
105
133
|
|
|
106
|
-
|
|
134
|
+
* [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
|
|
135
|
+
* [MAX API Documentation](https://dev.max.ru/docs-api/)
|
|
136
|
+
* [MAX Bot Platform](https://dev.max.ru/docs/chatbots/)
|
|
107
137
|
|
|
108
|
-
|
|
138
|
+
## Version History
|
|
109
139
|
|
|
110
|
-
|
|
140
|
+
### 0.4.20
|
|
141
|
+
- Fixed media upload (multipart/form-data support)
|
|
142
|
+
- Added support for channels/groups (chat_id with `-` prefix)
|
|
143
|
+
- Added "All Events" mode to MAX Trigger
|
|
144
|
+
- Improved webhook management
|
|
111
145
|
|
|
112
|
-
|
|
146
|
+
### 0.4.15
|
|
147
|
+
- Added Send with Media operation
|
|
148
|
+
- Support for image, video, audio, and file attachments
|
|
113
149
|
|
|
114
|
-
|
|
115
|
-
|
|
150
|
+
### 0.4.0
|
|
151
|
+
- Initial release
|
|
152
|
+
- Basic message operations
|
|
153
|
+
- Webhook trigger support
|
|
154
|
+
- Inline keyboard buttons
|
|
116
155
|
|
|
117
156
|
## License
|
|
118
157
|
|
|
119
|
-
MIT
|
|
158
|
+
[MIT](LICENSE.md)
|
|
159
|
+
|
|
160
|
+
## Support
|
|
161
|
+
|
|
162
|
+
- Report issues on GitHub
|
|
163
|
+
- MAX API Help: [MAX Developer Portal](https://dev.max.ru/)
|