- Home
- Integrations
- YooKassa
- YooKassa + Telegram
YooKassa payment notifications in Telegram without code
YooKassa payment notifications in Telegram work in nana800 through HTTP notifications: YooKassa itself sends the payment data to the webhook address of your scheme, and the bot messages you or your team group right away. You need a bot from @BotFather and access to your YooKassa account, with no shop keys and no server. One notification is two runs at the basic block price.
Build it in the builderWhat you can automate
- Get a Telegram message for every successful payment: amount, order description and payment ID
- Hear about canceled payments and refunds: tick these events in the YooKassa notification settings
- Flag large payments: the free condition block lets through only payments above the amount you set
- See who paid a link made in nana800: payments created by the YooKassa block carry the customer email in metadata
- Close the payment loop in a Telegram bot: one scheme creates the payment link, another tells you that the money came
How to set it up
- 1
Create a scheme with a webhook
Create a scheme in the builder and add the webhook trigger with the POST method and a path such as /yookassa. Turn the scheme on: a disabled scheme answers webhooks with an error. Press the API button in the builder and copy the webhook address.
- 2
Enter the address in your YooKassa account
An HTTP notification is a request YooKassa sends by itself when something happens to a payment. In your YooKassa account open the HTTP notification settings in the integration section, paste the webhook address and tick the events: payment.succeeded for a paid order, payment.canceled for a canceled payment, refund.succeeded for a refund.
- 3
See what YooKassa sends
Make a payment, a YooKassa test shop is the easiest way, and open the run history of the scheme. The trigger body holds event with the event name and object with the payment: id is the payment ID, amount.value the amount, amount.currency the currency, description the description and metadata the extra payment data.
- 4
Add the Telegram message send block
Paste the bot token from @BotFather and the chat ID: your own from @getmyid_bot or the ID of a group the bot was added to. Write a text such as "New payment" and insert the amount, description and payment ID from the trigger. The plain_text format is safer for descriptions with any characters.
- 5
Send only the events you need
If you ticked several events, put the free condition block before Telegram: event equals payment.succeeded. The same block can skip small amounts. Keep the scheme on. While it is on, it costs $0.0042 per hour.
Pricing
A run of a YooKassa block costs $0.002, a run of a Telegram block costs $0.001. Every month the balance is topped up to $3.50 for free, an enabled scheme costs $0.0042 per hour.
Services in this connection
- YooKassa
Create YooKassa payment links without code and send them to customers in Telegram, by email or to your website. Free balance every month, no card needed.
- Telegram
Build a Telegram bot without code: reply to messages, add buttons, send leads and alerts to a chat, group or channel. Free balance every month, no card needed.
Frequently asked questions
Build your first scheme for free
Sign-up is free and needs no card. Every month the balance is topped up to $3.50 for free, enough for about 3,500 runs of basic blocks.
Build it in the builder