Telegram Bot

This integration shows how to connect OxaPay with Telegram using n8n workflows. By combining OxaPay’s crypto payment APIs with Telegram automation in n8n, you can create a bot that generates payment requests, sends invoice links to customers, receives real-time payment status updates, and notifies users or admins when a transaction is completed.

What can you build with OxaPay and Telegram on n8n?

  • Generate crypto invoice links from Telegram commands

  • Send payment links directly to users in private chats or groups

  • Send automatic confirmation messages when a payment is paid

  • Deliver digital products, activation keys, download links, or access credentials after successful payment

  • Store payment records inside n8n Data Tables, Google Sheets, Airtable, Notion, or your own database

Example Automation Scenarios

1

Scenario 1: Telegram Payment Bot

n8n receives the message through the Telegram Trigger node, extracts the amount and currency, creates an OxaPay invoice through the OxaPay node, and sends the generated payment URL back to the user in Telegram.

2

Scenario 2: Admin Alert System

Whenever a payment is created, paid, underpaid, expired, or refunded, n8n can send a message to a private Telegram admin group.

3

Scenario 3: Digital Product Delivery

After OxaPay confirms that the invoice status is paid, n8n can automatically send a digital product to the customer.

Telegram Payment Bot with OxaPay Workflow

This n8n workflow connects the OxaPay node with the Telegram node to create a fully automated Telegram payment bot. Merchants can use the bot to generate OxaPay invoice links, white-label addresses, or static payment addresses directly from Telegram. The Webhook workflow listens for payment updates and sends real-time Telegram notifications when a payment is received, confirmed, or completed. You can download the n8n workflow file below:

Before starting, make sure you have:

  • An active OxaPay account with API access

  • A Telegram bot token created via BotFather

  • A self-hosted n8n instance with access to community nodes

How to build and configure this Telegram payment bot using n8n?

  1. Before importing or configuring the workflow, make sure the OxaPay Community node is installed in your n8n instance. You can install it from the n8n settings by going to Settings, opening Community nodes, selecting Install, entering the package name n8n-nodes-oxapay, and confirming the installation. After installation, the OxaPay node will be available in your n8n node list.

  1. To get started, open your n8n dashboard and create a new workflow by clicking “Create Workflow”.

  1. In the top-right corner of the n8n workflow editor, click the three-dot menu, select “Import from File”, and upload the downloaded workflow JSON file.

  1. Now, open each node in the workflow one by one and complete the required setup steps, including connecting your OxaPay and Telegram credentials, checking the node parameters, and adjusting any values based on your use case.

  1. In the n8n Data Table section, create a new table by importing the provided CSV file. After importing the file, review each column, save the table and connect it to the related Data Table nodes in the workflow.

  1. Now, click Publish in the top-right corner. This will save and activate the workflow so it can start receiving Telegram events.

  1. For real-time payment status notifications, create a separate n8n workflow and import the webhook workflow file below. This workflow will receive OxaPay payment updates and send automated Telegram notifications when a payment status changes.

  1. In this workflow, the Data Table node is used to store Telegram payment records. Before running the workflow, create a new Data Table in n8n by importing the provided CSV file below.

  1. Once all nodes are configured, copy the Production URL from the Webhook node in this workflow and add it as the Callback URL in all OxaPay nodes that create invoices or payment requests in the previous workflow. Finally, click Publish to save and activate the workflow.

Conclusion and Next Steps

With these two n8n workflows configured, your Telegram payment bot powered by OxaPay is ready to use:

  • The first workflow manages Telegram interactions and creates payment requests through the OxaPay node.

  • The second workflow receives OxaPay payment updates through a webhook and sends automated Telegram notifications when a payment is updated or completed.

You can extend this setup by adding:

  • Automatic delivery of digital products, license keys, invite links, or access credentials after successful payment

  • Transaction logging in Google Sheets, Airtable, CRM platforms, or external databases

  • Admin notifications for new payments, completed payments, and payment-related issues

By connecting OxaPay, Telegram, and n8n, you can create a flexible crypto payment automation system that works directly inside Telegram without building a custom backend.

Last updated