A mini app in your bot

Payments right in your bot

If your shop has its own Telegram bot, the payment form opens right in it — as a mini app. The buyer never leaves the bot: no browser, no links to follow.

  • Set up in 2 steps
  • We don’t need your bot’s token
  • You see who paid

Set up in 2 steps

For a developer, two small changes: a request to our API and a Telegram WebApp button under the invoice.

  1. 1

    Bind the bot to the project

    Once: PUT /v1/telegram-bot with the bot’s number — the number before the colon in its token. Don’t send the token itself.

    PUT /v1/telegram-bot
    Authorization: Bearer eo_live_…
    Content-Type: application/json
    
    {"bot_id": "7700123456", "bot_username": "shop_bot"}
  2. 2

    Show the button under the invoice

    Create an invoice through the API and send the buyer a web_app button with pay_url from the response — the form opens in your bot.

    POST https://api.telegram.org/bot<TOKEN>/sendMessage
    
    {"chat_id": 424242, "text": "Invoice EO-2Z82DNA0 for 15 USDT",
     "reply_markup": {"inline_keyboard": [[
       {"text": "Pay",
        "web_app": {"url": "https://oplata.express/pay/?order=Zk3…"}}
     ]]}}

What you get

The buyer pays without leaving the bot, and you and our support know who paid.

  • Your token stays with you

    Telegram itself signs the form’s launch data, and we check the signature for the bot bound to the project. We don’t need your bot’s token.

  • You see who paid

    Support sees which Telegram account opened and paid the invoice — easier to sort out “I paid, where is my order?”.

  • In groups and channels

    The mini app button doesn’t work there — give a plain link button instead: telegram_app_url (the form opens inside Telegram) or pay_url.

  • Works without binding too

    The form opens and the payment goes through; the buyer just stays unknown — as in a browser.

You need a project and an API key

The mini app works with invoices from the API: connect a project, issue a key in @ExPay_Agent — and add the button.