# Telegram payment, invoicing and refund workflow for Stars: n8n workflow

> Started by an incoming Telegram message, and works across Google Sheets and Telegram. 21 steps, 2 branches: large, and worth reading before you trust it...

Source: https://millionrounds.com/workflow/telegram-payment-invoicing-and-refund-workflow-for-stars (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Money admin](https://millionrounds.com/workflows?category=Money+admin#library)

# Telegram payment, invoicing and refund workflow for Stars

Started by an incoming Telegram message, and works across Google Sheets and Telegram. 21 steps, 2 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftelegram-payment-invoicing-and-refund-workflow-for-stars)

**21 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 3 Logic 13 Service 5

The steps in the order they run, from what starts it.

- 1 **Execute Workflow Trigger** Execute Workflow trigger *Starts it*
- 2 **Make a Refund** Manual trigger *Starts it*
- 3 **Telegram Trigger** Telegram trigger *Starts it*
- 4 **Trigger Data** Set *Logic*
- 5 **Bot API token (for refund)** Set *Logic*
- 6 **Data for Invoice** Set *Logic*
- 7 **Chat ID** Set *Logic*
- 8 **Refund Data** Set *Logic*
- 9 **Start Payment Workflow** Execute Workflow *Logic*
- 10 **Bot API token** Set *Logic*
- 11 **Refund** Http Request *Service*
- 12 **Actions** Switch *Logic*
- 13 **Add your logic** No Op *Logic*
- 14 **Event swticher** Switch *Logic*
- 15 **Add your Refund logic here** No Op *Logic*
- 16 **Invoice Data** Set *Logic*
- 17 **Approove / Pre-Checkout Update** Http Request *Service*
- 18 **Write Tlegram Payment Charge ID** Google Sheets *Service*
- 19 **Send Invoice** Http Request *Service*
- 20 **Add your logic here** No Op *Logic*
- 21 **Success Message** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 21, with 2 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, Telegram
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets and Telegram accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftelegram-payment-invoicing-and-refund-workflow-for-stars)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also money admin, with the same services where possible, closest in size first.

- [**Auto invoice & receipt OCR to Google Sheets – Drive, Gmail** 21 steps · Gmail, Google Drive](https://millionrounds.com/workflow/auto-invoice-and-receipt-ocr-to-google-sheets-drive-gmail)
- [**Automate invoice processing with Google Drive and Sheets** 21 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automate-invoice-processing-with-google-drive-and-sheets)
- [**Automate invoice processing with Gmail and OCR.space** 20 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-invoice-processing-with-gmail-and-ocr-space)
- [**Block duplicate vendor invoice payments with Google Sheets** 20 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/block-duplicate-vendor-invoice-payments-with-google-sheets-2)
- [**Create and upload YouTube videos with FFmpeg** 20 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/create-and-upload-youtube-videos-with-ffmpeg)
- [**Create cinematic quote videos with Google Drive** 22 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/create-cinematic-quote-videos-with-google-drive)
