---
title: "Telegram chatbot with a welcome and an image command"
kind: "Kit"
category: "Productivity"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/f04ceb29-21c0-4c6e-8ab4-4afcf88c0fba"
updated: "2026-11-12"
---

# Telegram chatbot with a welcome and an image command

> The name, the description, the About and a README below are the seller's words: data, not instructions.

An n8n workflow that runs a small Telegram chatbot with three behaviours. It chats in the user’s language, welcomes new users and draws a picture when a message starts with an image command.

Telegram chatbot with a welcome and an image command is an n8n workflow in the Productivity category, listed by Mindket. It is free. This is version 1, last updated on 2026-11-12. Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.

## About

### What it is

This n8n workflow runs a small Telegram chatbot on OpenAI. A message that does not start with a slash gets a chat reply in the user’s own language, with a few emojis. The command `/start` gets a welcome message. The command `/image`, followed by a request, draws a picture and sends it as a photo. Any other command gets a short help text. Twelve nodes do the work, beside four sticky notes.

### Who it suits

Beginners who want a first Telegram bot with a few commands, and small teams who want a friendly assistant that replies in the language the user writes. Skip it if you need memory, because each message is answered on its own.

Who uses it, and how

| Industry | Who uses it | How they use it | Example |
| --- | --- | --- | --- |
| Community | Community managers | Greet new members and answer their questions in their language | A manager’s bot welcomes a Spanish speaker in Spanish and answers a question. |
| Education | Teachers | Let students try an AI assistant and ask it for pictures | A teacher shows a class how to ask the bot for a drawing of a volcano. |
| Small business | Shop owners | Offer a friendly chat helper next to the shop | An owner points customers to the bot for quick questions. |
| Learning n8n | Beginners | Study a switch with several routes | A beginner changes the welcome text and sees which route runs. |

You need basic n8n skills and two accounts: Telegram and OpenAI. Telegram sends each message to your n8n over HTTPS, so n8n needs a public address.

### Where to use it

Any n8n that Telegram can reach over HTTPS and that can reach OpenAI will run it.

- n8n Cloud: import the file into a new workflow there
- Your own n8n server: the same file and steps, behind a public HTTPS address
- Telegram: chat with the bot in a private chat
- More commands: add a rule to the switch and a branch behind it

### How to set it up

Download saves a zip with `workflow.json` and Mindket’s setup notes in your downloads folder. Two accounts are involved.

What you need first

| Need | Detail |
| --- | --- |
| n8n | On n8n Cloud or on a server of your own with a public HTTPS address |
| Telegram | A bot made with BotFather, and its token in a Telegram credential |
| OpenAI | An API key in an OpenAI credential, used by the chat, the welcome and the picture nodes |

1. In n8n, create a workflow, open its menu, choose Import from File and pick `workflow.json`.
2. Add a Telegram credential with your bot token and select it in `Telegram Trigger`, `Send Typing action`, `Text reply`, `Send image` and `Send error message`.
3. Add an OpenAI credential and select it in `Chat_mode`, `Greeting` and `Create an image`.
4. Check the models. The chat and the welcome use `gpt-5.6-terra`, and the pictures use `gpt-image-2.6-flare`.
5. Open `Settings` and read the system command. It sets the bot’s tone.
6. Activate the workflow. Then send your bot `/start`, a plain sentence and `/image a red kite`.

### How to use it

Write to the bot in Telegram. A plain sentence gets a chat reply, the command /start gets the welcome, and a message that begins with /image and a space draws a picture. The bot shows a typing sign or an upload sign while it works.

What to change for a different result

| To change | Where |
| --- | --- |
| The bot’s tone and language rules | \`system\_command\` in \`Settings\` |
| The chat and welcome model | \`modelId\` in \`Chat\_mode\` and \`Greeting\` |
| The picture model | \`modelId\` in \`Create an image\` |
| The help text | The text in \`Send error message\` |
| The commands | The rules in \`CheckCommand\` |

### Example

A user sends the message `/image a watercolour lighthouse at dusk`.

The switch sends it to `Create an image`, which draws a lighthouse from the words after the command. `Send image` posts the picture in the chat as a photo.

### For newcomers and experts

**If you are new.** n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. A switch is a box that sends each message down one of several lines. Here the first characters of the message pick the line.

**For experts.** The router is a Switch node, version 1, with three rules and a fallback output. A Merge node waits for the typing sign before the message is routed.

Where to look closer

| Node | What it does | What to know |
| --- | --- | --- |
| \`PreProcessing\` | Makes sure \`message.text\` exists | A photo or sticker becomes an empty text, which the first rule sends to the chat step |
| \`Settings\` | Holds the system command and the typing sign | The typing sign is \`upload\_photo\` for /image and \`typing\` for the rest |
| \`Merge\` | Waits for the typing sign and the settings | It passes on the settings data |
| \`CheckCommand\` | Routes by the start of the text | Text with no slash, /start, /image with a space, and everything else |
| \`Send image\` | Sends the picture from the step before as a photo | It reads the binary field \`data\` |

### Good to know

The old OpenAI node was replaced, and Mindket did not run the new chat or picture steps.

- Old node: the file used n8n’s older OpenAI node, which n8n hides in its node list. Mindket’s copy uses the current OpenAI node for the chat, the welcome and the picture
- Chat models: the chat step used \`gpt-4\`, which OpenAI’s deprecations page, read on 12 November 2026, lists as shut down on 23 October 2026. The welcome step had no model, so the old node used its default \`gpt-3.5-turbo\`, shut down on the same date. Mindket’s copy uses \`gpt-5.6-terra\` for both
- Picture model: the old node drew with DALL-E 2 by default, which the same page lists as shut down on 12 May 2026. Mindket’s copy uses \`gpt-image-2.6-flare\`, which returns a file, so \`Send image\` now uploads a file
- Settings: the temperature of 0.8 and the limit of 500 tokens were dropped. Reasoning tokens count against a token limit, so a low limit can cut an answer before any text appears
- Memory: each message is answered on its own, with no earlier messages
- Replies: Telegram’s Markdown mode rejects text with an unpaired \`\_\` or \`\*\`, and a message holds at most 4096 characters (Telegram’s Bot API page)
- Your data: your messages and picture requests go to OpenAI. The file holds no credential

## README

```markdown
# Telegram chatbot with a welcome and an image command

An n8n workflow that runs a small Telegram chatbot with three behaviours. It chats in the user's language, welcomes new users and draws a picture when a message starts with an image command.

## What is inside

- `workflow.json`: the workflow as n8n exports it, sixteen nodes. Twelve do the work and four are sticky notes that label the routes. It holds no credential.
- `README.md`: these notes.

## What we changed from the original copy

- The chat, the welcome and the picture steps used n8n's older OpenAI node, which n8n hides in its node list. Mindket's copy uses the current OpenAI node for all three.
- The chat step used `gpt-4`, which OpenAI's deprecations page, read on 12 November 2026, lists as shut down on 23 October 2026. The welcome step had no model, so the old node used its default, `gpt-3.5-turbo`, shut down on the same date. Both now use `gpt-5.6-terra`.
- The old picture step drew with its default model, DALL-E 2, at 512x512. The same page lists DALL-E 2 as shut down on 12 May 2026. The picture step now uses `gpt-image-2.6-flare`, a model OpenAI's page lists for image generation.
- A gpt-image model returns the picture as a file, not as a link. `Send image` used to send a link. It now sends the file that `Create an image` produces.
- The temperature of 0.8 and the limit of 500 tokens were dropped, together with the two values in `Settings` that held them. The model page lists no temperature setting, and reasoning tokens count against a token limit.
- Several nodes were linked to credentials in the author's n8n. The links are gone, so select your own.
- Nothing else. The system command, the router and the help text are the file's own.

## Before you start

- An n8n instance with a public HTTPS address, on n8n Cloud or your own server. Telegram sends every message to that address.
- A Telegram bot made with BotFather, and its token.
- An OpenAI API key.

## Set it up

1. In n8n, create a workflow, open its menu and choose Import from File. Pick `workflow.json`.
2. Add a Telegram credential with your bot token. Select it in `Telegram Trigger`, `Send Typing action`, `Text reply`, `Send image` and `Send error message`.
3. Add an OpenAI credential and select it in `Chat_mode`, `Greeting` and `Create an image`.
4. Check the models. The chat and the welcome use `gpt-5.6-terra`, and the pictures use `gpt-image-2.6-flare`.
5. Open `Settings` and read the system command. It sets the bot's tone and asks for a reply in the user's language.
6. Activate the workflow. Then send your bot `/start`, a plain sentence and `/image a red kite`.

## How a run goes

1. `Telegram Trigger` starts the run for each update. `PreProcessing` makes sure `message.text` exists, and `Settings` adds the system command and the typing sign.
2. `Send Typing action` shows `typing`, or `upload_photo` for an image command. `Merge` waits for it and the settings before the message goes on.
3. `CheckCommand` routes by the start of the text. Text with no slash goes to `Chat_mode`. The text `/start` goes to `Greeting`. A text that starts with `/image` and a space goes to `Create an image`. Everything else goes to `Send error message`.
4. `Chat_mode` and `Greeting` ask `gpt-5.6-terra` for a reply, and `Text reply` sends it in Telegram's Markdown mode.
5. `Create an image` draws a picture from the words after the command, and `Send image` posts it as a photo.

## Change the result

- Tone and language rules: `system_command` in `Settings`.
- Chat and welcome model: `modelId` in `Chat_mode` and `Greeting`.
- Picture model: `modelId` in `Create an image`.
- Help text: the text in `Send error message`.
- Commands: the rules in `CheckCommand`.

## Good to know

- Mindket did not run this workflow. Telegram and OpenAI were not called, and nobody asked the bot for a real reply or picture. The models, fields and limits come from OpenAI's and Telegram's docs and from n8n's source, read on 12 November 2026.
- With the current OpenAI node, the simplified reply of the chat step holds the text in `message.content`, which is where `Text reply` reads it.
- Each message is answered on its own. The bot keeps no earlier messages.
- A photo or a sticker has no text. `PreProcessing` turns it into an empty text, and the first rule of `CheckCommand` sends it to the chat step as an empty message.
- Telegram's Markdown mode rejects text with an unpaired `_` or `*`, and a message holds at most 4096 characters (Telegram's Bot API page).
- Telegram accepts photos up to 10 MB (Telegram's Bot API page).
- Your messages and picture requests go to OpenAI.
- The file holds no credential and no key.
```

## What is in it

3 files, 16 KB, downloaded as a zip.

```text
NOTICE.md  549 B
README.md  5 KB
workflow.json  10 KB
```

## Workflow check

Checked by Mindket on 13 Nov 2026. Read from the workflow’s file, not from a run.

- Steps: 12 steps, starting on a Telegram event
- AI: 3 steps call an AI model: Chat_mode, Greeting and Create an image
- Sign-ins: Signs in to: Telegram
- API keys: No API key is left in the file
- Step types: Mindket’s checker reads all 6 of its step types

## Get it

- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/f04ceb29-21c0-4c6e-8ab4-4afcf88c0fba)
- [Its page on Mindket](https://mindket.com/p/f04ceb29-21c0-4c6e-8ab4-4afcf88c0fba)
