Automation library · Money admin

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

21 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 3Logic 13Service 5

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

  1. 1Execute Workflow TriggerExecute Workflow triggerStarts it
  2. 2Make a RefundManual triggerStarts it
  3. 3Telegram TriggerTelegram triggerStarts it
  4. 4Trigger DataSetLogic
  5. 5Bot API token (for refund)SetLogic
  6. 6Data for InvoiceSetLogic
  7. 7Chat IDSetLogic
  8. 8Refund DataSetLogic
  9. 9Start Payment WorkflowExecute WorkflowLogic
  10. 10Bot API tokenSetLogic
  11. 11RefundHttp RequestService
  12. 12ActionsSwitchLogic
  13. 13Add your logicNo OpLogic
  14. 14Event swticherSwitchLogic
  15. 15Add your Refund logic hereNo OpLogic
  16. 16Invoice DataSetLogic
  17. 17Approove / Pre-Checkout UpdateHttp RequestService
  18. 18Write Tlegram Payment Charge IDGoogle SheetsService
  19. 19Send InvoiceHttp RequestService
  20. 20Add your logic hereNo OpLogic
  21. 21Success MessageTelegramService

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.