fix(05-02): revert credential reference to hardcoded user ID
n8n IF nodes don't support credentials - $credentials syntax only works in nodes that make external calls. Reverted to direct user ID in the IF conditions and updated README with simpler configuration instructions. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+4
-16
@@ -100,7 +100,7 @@
|
||||
{
|
||||
"id": "user-auth-condition",
|
||||
"leftValue": "={{ $json.message.from.id.toString() }}",
|
||||
"rightValue": "={{ $credentials.telegramAuth.userId }}",
|
||||
"rightValue": "563878771",
|
||||
"operator": {
|
||||
"type": "string",
|
||||
"operation": "equals"
|
||||
@@ -118,13 +118,7 @@
|
||||
"position": [
|
||||
680,
|
||||
200
|
||||
],
|
||||
"credentials": {
|
||||
"telegramAuth": {
|
||||
"id": "telegram-auth-credential",
|
||||
"name": "Telegram Auth"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
@@ -138,7 +132,7 @@
|
||||
{
|
||||
"id": "callback-auth-condition",
|
||||
"leftValue": "={{ $json.callback_query.from.id.toString() }}",
|
||||
"rightValue": "={{ $credentials.telegramAuth.userId }}",
|
||||
"rightValue": "563878771",
|
||||
"operator": {
|
||||
"type": "string",
|
||||
"operation": "equals"
|
||||
@@ -156,13 +150,7 @@
|
||||
"position": [
|
||||
680,
|
||||
500
|
||||
],
|
||||
"credentials": {
|
||||
"telegramAuth": {
|
||||
"id": "telegram-auth-credential",
|
||||
"name": "Telegram Auth"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
|
||||
Reference in New Issue
Block a user