This workflow follows the Google Sheets → Telegram recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Groom AB Marketplace Bot",
"nodes": [
{
"parameters": {
"updates": [
"message",
"callback_query"
],
"additionalFields": {}
},
"id": "1",
"name": "Telegram Trigger - GroomAB Bot",
"type": "n8n-nodes-base.telegramTrigger",
"typeVersion": 1.1,
"position": [
240,
300
],
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"jsCode": "const body = $input.first().json;\nconst msg = body.message;\nconst cb = body.callback_query;\n\nif (cb) {\n return [{ json: { type: 'callback', data: cb.data, from: cb.from, message: cb.message, callback_query_id: cb.id } }];\n}\n\nif (msg) {\n return [{ json: { type: 'message', text: msg.text || '', from: msg.from, chat_id: msg.chat.id, message_id: msg.message_id, photo: msg.photo || null } }];\n}\n\nreturn [{ json: { type: 'unknown' } }];"
},
"id": "2",
"name": "Parse Update",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
460,
300
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"id": "c1",
"leftValue": "={{ $json.type }}",
"rightValue": "callback",
"operator": {
"type": "string",
"operation": "equals"
}
}
],
"combinator": "and"
}
},
"id": "3",
"name": "Is Callback?",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
680,
300
]
},
{
"parameters": {
"jsCode": "const data = $json.data;\nconst parts = data.split('_');\nconst action = parts[0];\nconst submissionId = parts.slice(1).join('_');\nreturn [{ json: { action, submissionId, from: $json.from, callback_query_id: $json.callback_query_id } }];"
},
"id": "4",
"name": "Parse Callback",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
900,
180
]
},
{
"parameters": {
"jsCode": "const text = $json.text || '';\nconst chatId = $json.chat_id;\nconst from = $json.from;\n\n// Session key based on user id\nconst userId = from.id;\n\n// Return parsed message info\nreturn [{ json: { text, chatId, userId, from, photo: $json.photo } }];"
},
"id": "5",
"name": "Parse Message",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
900,
420
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": false
},
"conditions": [
{
"id": "s1",
"leftValue": "={{ $json.text }}",
"rightValue": "/start",
"operator": {
"type": "string",
"operation": "equals"
}
},
{
"id": "s2",
"leftValue": "={{ $json.text }}",
"rightValue": "/submit",
"operator": {
"type": "string",
"operation": "equals"
}
}
],
"combinator": "or"
}
},
"id": "6",
"name": "Is Start or Submit?",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
1120,
420
]
},
{
"parameters": {
"chatId": "={{ $json.chatId }}",
"text": "Welcome to *Groom AB Engineering Construction Marketplace!*\n\nPlease choose what you want to do:\n\n*1.* Sell an item\n*2.* Rent out an item\n\nReply with *1* for Sell or *2* for Rent to begin.",
"additionalFields": {
"parse_mode": "Markdown"
},
"credentials": {
"telegramApi": {
"id": "groomab",
"name": "GroomAB Bot"
}
}
},
"id": "7",
"name": "Send Welcome",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
1340,
300
]
},
{
"parameters": {
"operation": "appendOrUpdate",
"documentId": {
"__rl": true,
"value": "YOUR_GOOGLE_SHEET_ID",
"mode": "id"
},
"sheetName": {
"__rl": true,
"value": "Submissions",
"mode": "name"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"Submission_ID": "={{ $json.submissionId }}",
"Status": "Approved",
"Approved_Date": "={{ new Date().toISOString() }}"
},
"matchingColumns": [
"Submission_ID"
],
"schema": []
},
"options": {}
},
"id": "8",
"name": "Update Sheet - Approved",
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.5,
"position": [
1120,
180
]
},
{
"parameters": {
"chatId": "-1001160650703",
"text": "={{ $json.post_text }}",
"additionalFields": {
"parse_mode": "Markdown"
},
"credentials": {
"telegramApi": {
"id": "groomam",
"name": "GroomAM Bot"
}
}
},
"id": "9",
"name": "Post to Group",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
1340,
180
]
}
],
"connections": {
"Telegram Trigger - GroomAB Bot": {
"main": [
[
{
"node": "Parse Update",
"type": "main",
"index": 0
}
]
]
},
"Parse Update": {
"main": [
[
{
"node": "Is Callback?",
"type": "main",
"index": 0
}
]
]
},
"Is Callback?": {
"main": [
[
{
"node": "Parse Callback",
"type": "main",
"index": 0
}
],
[
{
"node": "Parse Message",
"type": "main",
"index": 0
}
]
]
},
"Parse Callback": {
"main": [
[
{
"node": "Update Sheet - Approved",
"type": "main",
"index": 0
}
]
]
},
"Update Sheet - Approved": {
"main": [
[
{
"node": "Post to Group",
"type": "main",
"index": 0
}
]
]
},
"Parse Message": {
"main": [
[
{
"node": "Is Start or Submit?",
"type": "main",
"index": 0
}
]
]
},
"Is Start or Submit?": {
"main": [
[
{
"node": "Send Welcome",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
telegramApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Groom AB Marketplace Bot. Uses telegramTrigger, telegram, googleSheets. Event-driven trigger; 9 nodes.
Source: https://gist.github.com/GoomAb/2d6d058107fe0902b710699cba7e968a — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow provides a complete solution for handling Telegram Stars payments, invoicing and refunds using n8n. It automates the process of sending invoices, managing pre-checkout approvals, recordi
clients kept booking meetings during my prayer times. i'd either miss a prayer or scramble to reschedule. the problem wasn't the clients — it was that my calendar had no blocked windows for salah. i n
This workflow is a powerful reputation management tool designed to proactively filter customer reviews. It helps you encourage positive reviews on Google while capturing negative feedback privately be
This workflow is designed to automate your e-commerce order processing by instantly syncing new Jotform submissions with your internal systems and immediately notifying the customer on Telegram.
This template is perfect for freelancers, small business owners, or financial assistants who want to record and approve financial transactions like income and expenses directly from Telegram, without