How to use your Bleskomat ATM with the Platform and lntxbot

In this guide you will learn how to connect your Bleskomat ATM with the Bleskomat Platform and the lntxbot Telegram bot to send and monitor Lightning payments easily from your phone or desktop.

What is lntxbot?

The lntxbot Telegram bot is a custodial Lightning Network wallet with many experimental features for playing around with Lightning payments and related projects. The service is hosted and maintained by fiatjaf. The code that the service is running can be found in the lntxbot github repository.

Install Telegram

Since lntxbot is a Telegram bot, it is necessary to install the Telegram messaging app on your phone. It is available for Android and iOS. After the initial setup of a Telegram account, it is possible to use it from your desktop by installing the Telegram desktop app on your computer. The desktop version is not necessary, but could be convenient in case you prefer to do the steps in this guide on your computer instead of on your phone.

Once you've installed Telegram and have setup your account, you can continue with the rest of the guide.

Setup lntxbot wallet account

Since lntxbot is a Telegram bot, it's quite easy to setup an account. First, let's find the bot by searching for it by name. Type "lntxbot" in the search bar of Telegram. Open a new chat window with the bot. Note that all Telegram bots have the "bot" subtext to help you identify that you are chatting with a bot.

Send a message to the bot. Let's try "/help". Note the slash. This indicates that you are sending the bot a command. The bot will send you a detailed list of all possible commands you can use. Let's try another command. Type and send "/balance" to the bot. It will respond with your current Lightning wallet balance - which will be 0 in if this is your first time using the bot.

Search for lntxbot

Help command

The lntxbot service has an API that can be used to send Lightning payments on behalf of its users. It can also be used to perform other Lightning-related functions, but we don't need most of those for the Bleskomat ATM. Type and send "/api_full". This will request that the bot gives you a full-access API key. This is needed by the Bleskomat Platform to be able to send Lightning payments from your lntxbot wallet account.

If at a later time you would like to revoke access to the Bleskomat Platform, you can use the "/api_refresh" command to cycle the API key on lntxbot's side.

Command to get full-access API key

Command to refresh API key

Great! Now that you have the API key, you can move on to the next steps.

Connect your Bleskomat Platform account to lntxbot

Using the API key that you received from the previous steps, let's now connect your Bleskomat Platform account to your lntxbot wallet.

  1. Login to your Bleskomat Platform account
    • For first time login:
      • Find the instructions sheet that you received with your Bleskomat ATM
      • Go to p.bleskomat.com/start in your browser
      • Use the login phrase from the sheet to login to your account
      • Follow the steps to complete the setup
  1. Click "Devices" on the left side of the account screen
    • You will find one device listed on this page
  1. Click the download icon on the right side of the listed device

A file named "bleskomat.conf" should be downloaded and saved to your computer. This is your Bleskomat ATM's configuration file. It includes the API key information which your ATM will use to create signed lnurl-withdraw QR codes. This is how the Bleskomat Platform knows that a request for payment was initiated by your ATM.

  1. Click the gear icon on the right side of the listed device
    • This will open the device's settings page
  1. Note the various settings available:
    • Enabled - Whether or not the Bleskomat Platform will process payments on behalf of the ATM
    • Fiat Currency - The currency (bills and coins) which your ATM accepts. Changing this requires re-programming the bill and coin acceptors.
    • Buy Limit - The maximum per trade limit for the ATM
    • Exchange Rate Provider - The exchange rate API to use when fetching BTC to fiat exchange rate
    • Fee % - The percent amount deducted from the final BTC amount when sending Lightning payments
  1. Select "lntxbot" from the list of "Lightning Backend Types"
  2. Copy/paste the API key from earlier into the "Admin Key" input field
  3. Click the "Save" button

Your Bleskomat Platform account is now ready to send Lightning payments from your lntxbot wallet.

Configure your Bleskomat ATM

In order for your Bleskomat ATM to create QR codes that the Bleskomat Platform will accept, you must configure the ATM using the file that you downloaded previously.

  1. Un-plug your Bleskomat ATM from power
  2. Locate and remove the SD card from the Bleskomat ATM
    • Refer to the user manual for specific instructions about how to locate the PCB and SD card
  3. Insert the SD card into your computer's SD card slot
    • The SD card file system should be automatically mounted
  4. Copy the "bleskomat.conf" file to the SD card
  5. Un-mount the SD card
  6. Remove the SD card from your computer
  7. Insert the SD card back into the Bleskomat ATM
  8. Plug-in the Bleskomat ATM to power

Fund your lntxbot wallet

The final step is to fund the lntxbot wallet account so that your lntxbot wallet can send Lightning payments on behalf of your Bleskomat ATM. In Telegram, open the chat with lntxbot. Send a message "/balance 5000" to create an invoice for 5000 satoshis. This is just an example, use whatever amount you are comfortable with for testing. The invoice will be shown as text and as a QR code. Pay the invoice with an

Pay the invoice by scanning the QR code with a mobile wallet app that has sufficient funds to pay it. Or copy/paste the invoice as text to your Lightning service provider account or Lightning node software.

Once your lntxbot wallet account is funded, you can move on to testing your setup.

Test the setup

Now let's test the whole setup to make sure it's working as expected.

  1. Insert a coin or bill into the Bleskomat ATM
  2. Push the button
  3. Open a compatible mobile wallet app
    • Please see apps for a list of wallet apps which are compatible
  4. Scan the QR code with the mobile wallet app
  5. Follow the instructions in the mobile wallet app to complete the Lightning payment

You should see a notification from lntxbot about the transaction attempt and whether it was successful.

Need additional help?

If you're stuck and would like some extra help to get your Bleskomat ATM setup working, please feel free to reach out to us directly at support@bleskomat.com