> For the complete documentation index, see [llms.txt](https://docs.oxapay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.oxapay.com/welcome-to-oxapay/integrations/make-automation/telegram-bot.md).

# Telegram Bot

This integration allows you to connect OxaPay with Telegram using Make.&#x20;By combining OxaPay’s payment and invoice system with Telegram bots or chats, you can automate payment notifications, order confirmations, and user interactions in real-time.

<div data-with-frame="true"><figure><img src="/files/JTDgI31WZXU7zLBcp3LJ" alt=""><figcaption></figcaption></figure></div>

### Using OxaPay and Telegram together on Make, you can:

* Send Telegram messages when a payment is completed
* Generate invoices and automatically deliver them to customers through Telegram
* Automatically deliver digital products after successful payment
* Alert users about payment expiration or failure
* Create a Telegram based payment notification system for merchants

> **In short, you can build virtually any payment related automation by combining OxaPay and Telegram on Make.**

### Example Automation Scenarios

{% stepper %}
{% step %}

#### **Scenario 1: Payment Notification Bot**

When a payment status changes to Paid in OxaPay, a Telegram message is sent automatically to a user or group.
{% endstep %}

{% step %}

#### **Scenario 2: Admin Alert System**

Admins are notified in a private Telegram group when a new or high-value transaction is completed.
{% endstep %}

{% step %}

#### **Scenario 3: Invoice Creation & Tracking**

An invoice is created in OxaPay and the payment link is instantly sent to the customer via Telegram.
{% endstep %}
{% endstepper %}

### **Telegram Payment Bot with OxaPay Scenario** <a href="#telegram-payment-bot-with-oxapay-scenario" id="telegram-payment-bot-with-oxapay-scenario"></a>

This scenario creates a Telegram bot powered by OxaPay that allows merchants to generate payment requests directly inside Telegram. Using this bot, users can create invoice links, white-label addresses, or static addresses, and receive instant Telegram notifications whenever a payment is completed. You can download the scenario blueprint file below:

{% file src="/files/7R3Iw4D9hqOllyWauqld" %}

#### Before starting, make sure you have:

* An active OxaPay account with API access
* A Telegram bot token created via BotFather
* A Make account with access to Data Store

#### **How to build and configure this Telegram payment bot using Make?**

1. First, create a new scenario by going to the Make dashboard and clicking the "**Create scenario**" button.

<div data-with-frame="true"><figure><img src="/files/kEoUyh29cqZ6q4e9nm0n" alt=""><figcaption></figcaption></figure></div>

2. In the top-right corner, click the three-dot menu, then choose "**Import blueprint"** and upload the downloaded scenario file.

<div data-with-frame="true"><figure><img src="/files/fspzZ1jZ8QHSSsxDdzX7" alt=""><figcaption></figcaption></figure></div>

3. Now, click on each **module** one by one and complete the required **connection** and configuration steps.

<div data-with-frame="true"><figure><img src="/files/JRLKxQIopRcTbGScFACv" alt=""><figcaption></figcaption></figure></div>

4. In the "**Data Store**" module, you need to connect it to a database with the following structure.

<div data-with-frame="true"><figure><img src="/files/Wpx8s0FEr7gaBIpQfnVc" alt=""><figcaption></figcaption></figure></div>

5. Once all modules are configured, click **Save** to store the scenario.

<div data-with-frame="true"><figure><img src="/files/sWpFDQOr75IukdFhWYX6" alt=""><figcaption></figcaption></figure></div>

6. Now, go to the scenario page you created and click the **Active** button to activate the scenario.

<div data-with-frame="true"><figure><img src="/files/9BXIPRYSurvSCmFrnhmE" alt=""><figcaption></figcaption></figure></div>

7. For real-time payment status notifications, create a separate scenario and import the blueprint file below into a new scenario.

{% file src="/files/LUJYerlrBmJtBQVpeASm" %}

8. In the "**Data Store**" module in this scenario, you need to connect it to a database with the following structure.

<div data-with-frame="true"><figure><img src="/files/Bf73CvPpBZGEZxJ39tPu" alt=""><figcaption></figcaption></figure></div>

9. Once all modules are configured, copy the webhook URL from the "**Watch Payment Webhook**" module and add it to the Callback URL of all OxaPay modules that create invoices or payment requests in the previous scenario. Finally, save and activate the scenario.

<div data-with-frame="true"><figure><img src="/files/Be9yXE4Xuub7hbrmtEjs" alt=""><figcaption></figcaption></figure></div>

### Conclusion and Next Steps

**With these two Make scenarios configured, you now have a fully functional Telegram payment bot powered by OxaPay:**

* Scenario 1 handles user interaction and payment creation inside Telegram.
* Scenario 2 receives real-time payment status updates via webhook and sends automated Telegram notifications.

**This setup can be extended further by:**

* Delivering digital products or access credentials after successful payment
* Logging transactions in external tools such as Google Sheets or CRM systems
* Adding retry or fallback flows for expired or failed payments

By combining OxaPay, Telegram, and Make, you can build flexible and scalable crypto payment automations without writing custom backend code.
