How to remove n8n message from telegram bot?

I am trying to do Telegram bot with ChatGPT, and whenever the bot responds it includes the following message: This message was sent automatically with n8n.

Workflow:
<
{
“meta”: {
“instanceId”: “ae271e1d4ebdca0bab0163dab6081b95dbbbd1400bfb98803952ead00c572c63”
},
“nodes”: [
{
“parameters”: {
“conditions”: {
“string”: [
{
“value1”: “={{ $json.message.text }}”,
“operation”: “contains”,
“value2”: “/start”
}
]
}
},
“id”: “ffe66a65-2c90-4eb7-aafe-ae2bb25e417f”,
“name”: “IF”,
“type”: “n8n-nodes-base.if”,
“typeVersion”: 1,
“position”: [
700,
380
]
},
{
“parameters”: {},
“id”: “f95b873b-ea9c-46de-879c-47e6a4f95b96”,
“name”: “No Operation, do nothing”,
“type”: “n8n-nodes-base.noOp”,
“typeVersion”: 1,
“position”: [
940,
260
]
},
{
“parameters”: {
“operation”: “sendChatAction”,
“chatId”: “={{ $json.message.chat.id }}”
},
“id”: “6de6b99a-1b24-4eb1-b9ed-94c1bca625ca”,
“name”: “Telegram”,
“type”: “n8n-nodes-base.telegram”,
“typeVersion”: 1.1,
“position”: [
1160,
400
],
“credentials”: {
“telegramApi”: {
“id”: “1zonRuNYvdHZpURw”,
“name”: “Telegram Bot”
}
}
},
{
“parameters”: {
“operation”: “sendChatAction”,
“chatId”: “={{ $json.message.chat.id }}”
},
“id”: “384fd0ad-a419-49a5-b136-5807f7b8c9bb”,
“name”: “Telegram1”,
“type”: “n8n-nodes-base.telegram”,
“typeVersion”: 1.1,
“position”: [
1160,
600
],
“credentials”: {
“telegramApi”: {
“id”: “1zonRuNYvdHZpURw”,
“name”: “Telegram Bot”
}
}
},
{
“parameters”: {
“chatId”: “={{ $node["Check Chat ID"].json.message.chat.id }}”,
“text”: “={{ $json.message.content }}”,
“additionalFields”: {}
},
“id”: “9c8a2be8-6c01-483d-98ba-8433ac533348”,
“name”: “Telegram2”,
“type”: “n8n-nodes-base.telegram”,
“typeVersion”: 1.1,
“position”: [
1520,
400
],
“credentials”: {
“telegramApi”: {
“id”: “1zonRuNYvdHZpURw”,
“name”: “Telegram Bot”
}
}
},
{
“parameters”: {},
“id”: “7639a6c4-ec27-4557-b093-34c9258f2130”,
“name”: “Wait”,
“type”: “n8n-nodes-base.wait”,
“typeVersion”: 1,
“position”: [
1340,
600
],
“webhookId”: “1dd24562-241c-43e2-be5f-0f799b23654e”
},
{
“parameters”: {
“chatId”: “={{ $node["Check Chat ID"].json.message.chat.id }}”,
“text”: “I am not authorised to speak with you.”,
“additionalFields”: {}
},
“id”: “54c9840f-fbc4-4a34-884d-1444c3b67661”,
“name”: “Telegram3”,
“type”: “n8n-nodes-base.telegram”,
“typeVersion”: 1.1,
“position”: [
1520,
600
],
“credentials”: {
“telegramApi”: {
“id”: “1zonRuNYvdHZpURw”,
“name”: “Telegram Bot”
}
}
},
{
“parameters”: {
“updates”: [
“message”
],
“additionalFields”: {}
},
“id”: “eddf8762-dc95-4399-a9fc-c543499b5b22”,
“name”: “Telegram Trigger”,
“type”: “n8n-nodes-base.telegramTrigger”,
“typeVersion”: 1,
“position”: [
480,
380
],
“webhookId”: “6c337a8b-27e6-48de-aba1-2b739e1327be”,
“credentials”: {
“telegramApi”: {
“id”: “1zonRuNYvdHZpURw”,
“name”: “Telegram Bot”
}
}
},
{
“parameters”: {
“conditions”: {
“string”: [
{
“value1”: “={{ $json.message.chat.id }}”,
“operation”: “contains”,
“value2”: “6485958533”
}
]
}
},
“id”: “bef93ff0-ef4c-476d-8306-edc7be6fce98”,
“name”: “Check Chat ID”,
“type”: “n8n-nodes-base.if”,
“typeVersion”: 1,
“position”: [
940,
500
]
},
{
“parameters”: {
“resource”: “chat”,
“prompt”: {
“messages”: [
{
“role”: “assistant”,
“content”: “You are an assistant called ChatGPT. Your task is to help the user with any questions he has.”
},
{
“role”: “assistant”
},
{
“content”: “={{ $node["Telegram Trigger"].json["message"]["text"] }}”
}
]
},
“options”: {}
},
“id”: “aeaf2b27-b4e3-4ac6-9aca-74eecb8e3b0e”,
“name”: “Generate Answer”,
“type”: “n8n-nodes-base.openAi”,
“typeVersion”: 1,
“position”: [
1340,
400
],
“credentials”: {
“openAiApi”: {
“id”: “3ToMCkvEpGmq2e5I”,
“name”: “OpenAi account”
}
}
}
],
“connections”: {
“IF”: {
“main”: [
[
{
“node”: “No Operation, do nothing”,
“type”: “main”,
“index”: 0
}
],
[
{
“node”: “Check Chat ID”,
“type”: “main”,
“index”: 0
}
]
]
},
“Telegram”: {
“main”: [
[
{
“node”: “Generate Answer”,
“type”: “main”,
“index”: 0
}
]
]
},
“Telegram1”: {
“main”: [
[
{
“node”: “Wait”,
“type”: “main”,
“index”: 0
}
]
]
},
“Wait”: {
“main”: [
[
{
“node”: “Telegram3”,
“type”: “main”,
“index”: 0
}
]
]
},
“Telegram Trigger”: {
“main”: [
[
{
“node”: “IF”,
“type”: “main”,
“index”: 0
}
]
]
},
“Check Chat ID”: {
“main”: [
[
{
“node”: “Telegram”,
“type”: “main”,
“index”: 0
}
],
[
{
“node”: “Telegram1”,
“type”: “main”,
“index”: 0
}
]
]
},
“Generate Answer”: {
“main”: [
[
{
“node”: “Telegram2”,
“type”: “main”,
“index”: 0
}
]
]
}
}
}
/>

Share the output returned by the last node

Input by user: Hello
Expected output: Hello! How can I assist you today?
Output: Hello! How can I assist you today?
This message was sent automatically with n8n

1 Like

Check the node options: Append n8n Attribution. It is “On” by default.
IMG_20231027_124939_822

7 Likes

Thank you so much! It works perfectly now!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.