Skip to content
ArionPay

Telegram bot

Sell digital items for crypto in Telegram

A ready-made Telegram bot that sells files, links, licence keys and private-group invites. Customers pay on the secure ArionPay page, straight to your own wallet, and the bot sends the item.

Example

What it does

ArionPay for Telegram

The ArionPay Telegram shop bot is one Node.js file that you run on your own server or computer. Customers send /start, tap an item and pay on the ArionPay page; when ArionPay confirms the payment, the bot sends what you wrote for that item in products.json.
Read moreWith a public https address it gets signed webhooks at once, and without one it asks ArionPay about open orders every 30 seconds. No database or framework is needed.
  • Products live in one products.json file: name, price, currency and what the bot sends after payment.
  • Each order is delivered once.
  • Runs anywhere: signed webhooks with a public https address, or a check of open orders every 30 seconds without one.
  • An item is sent only when ArionPay confirms the full payment for that order, in the same currency and amount.
  • A test invoice never delivers in live mode, and a live one never in test mode.
  • Orders are kept in orders.json next to the bot.
  • One file, Node.js 18 or newer, no database or framework.

Requirements and licence

Works with
Node.js 18 or newer · any server or computer (a public https address is optional)
Tested
A real ArionPay server, in webhook and polling mode
Cost
The plugin is free. ArionPay charges 0.5% per payment, with no monthly fee.
Source
Open source (MIT) on GitHub.

Setup

Set it up in 5 steps

  1. Step 1

    Create the bot

    In Telegram, talk to @BotFather, send /newbot and copy the bot token.

  2. Step 2

    Copy your keys

    In your ArionPay dashboard, open your store and copy the API key and API secret.

  3. Step 3

    Install and configure

    Clone the repository, run npm install, copy .env.example to .env and paste the token and keys.

  4. Step 4

    Add your products

    Edit products.json: one entry per item, with what the bot sends after payment in deliver.

  5. Step 5

    Start and test

    Run npm start, send /start to your bot and buy something, finishing with the test buttons on the ArionPay page. When it works, set ARIONPAY_TEST_MODE=false and restart.

After the setup

How a sale works

  • Tapping an item creates an ArionPay invoice and shows a Pay button to the ArionPay page.
  • When the payment is seen on the network, the bot tells the customer it is waiting for confirmations.
  • When ArionPay confirms the full payment, the bot sends "Payment received, thank you!" and the item. Each order is delivered once.
  • A payment that is not exact goes to Payment Radar, where you decide. If you accept it, the bot delivers.
  • When the time to pay runs out, the bot says so. A late payment is still detected.
  • A payment that does not match the order is not delivered; the customer is told the seller will check it.

16 coins and tokens on 9 networks

All coins
  • BTCBitcoin
  • ETHEthereum
  • USDTEthereum
  • USDCEthereum
  • BNBBNB Smart Chain
  • USDTBNB Smart Chain
  • USDCBNB Smart Chain
  • POLPolygon
  • USDTPolygon
  • USDCPolygon
  • TRXTRON
  • USDTTRON
  • LTCLitecoin
  • DOGEDogecoin
  • BCHBitcoin Cash
  • DASHDash

Questions about ArionPay for Telegram

Short answers before you install it.

No. With a public https address it gets instant signed webhooks. Without one it asks ArionPay about open orders every 30 seconds, so it runs anywhere.