Auto-sync: 20260123-015626
This commit is contained in:
38
N8N.md
38
N8N.md
@@ -258,6 +258,44 @@ curl -H "X-N8N-API-KEY: YOUR_KEY" http://10.10.10.207:5678/api/v1/workflows
|
|||||||
ssh docker-host2 'docker ps | grep n8n'
|
ssh docker-host2 'docker ps | grep n8n'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Remove "This message was sent automatically by n8n" signature from Telegram messages
|
||||||
|
|
||||||
|
**Problem:** n8n Telegram node adds attribution signature to all messages by default.
|
||||||
|
|
||||||
|
**Solution:** Use the correct parameter name `appendAttribution` (camelCase, not snake_case) in `additionalFields`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Get workflow
|
||||||
|
curl -H "X-N8N-API-KEY: $(cat /tmp/n8n-key.txt)" \
|
||||||
|
http://10.10.10.207:5678/api/v1/workflows/WORKFLOW_ID > workflow.json
|
||||||
|
|
||||||
|
# Update all Telegram nodes (using jq)
|
||||||
|
cat workflow.json | jq '.nodes = (.nodes | map(
|
||||||
|
if .type == "n8n-nodes-base.telegram" then
|
||||||
|
.parameters.additionalFields.appendAttribution = false
|
||||||
|
else
|
||||||
|
.
|
||||||
|
end
|
||||||
|
))' | jq '{name, nodes, connections, settings, staticData}' > workflow-fixed.json
|
||||||
|
|
||||||
|
# Upload updated workflow
|
||||||
|
curl -X PUT \
|
||||||
|
-H "X-N8N-API-KEY: $(cat /tmp/n8n-key.txt)" \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d @workflow-fixed.json \
|
||||||
|
http://10.10.10.207:5678/api/v1/workflows/WORKFLOW_ID
|
||||||
|
|
||||||
|
# Restart n8n to reload workflow
|
||||||
|
ssh docker-host2 'cd /opt/n8n && docker compose restart n8n'
|
||||||
|
```
|
||||||
|
|
||||||
|
**Important Notes:**
|
||||||
|
- Parameter must be `appendAttribution` (camelCase), not `append_attribution` or `append_n8n_attribution`
|
||||||
|
- Must restart n8n after updating workflow for changes to take effect
|
||||||
|
- This applies to all Telegram message nodes in the workflow
|
||||||
|
|
||||||
|
**Fixed:** 2026-01-23
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Integration Examples
|
## Integration Examples
|
||||||
|
|||||||
Reference in New Issue
Block a user