Run a Telegram bot in old Android device

Alif
2 min readJun 9, 2022

I was wondering how to differently utilize an old Android phone with decent hardware resources, 8gb RAM + 256GB storage + Snapdragon

As we know, the ARM-based Snapdragon processor is great for low-power consumption device.

I’ve been holding a need to write a simple bot to alert me on Bitcoin price. Similar other online services are not reliable & prompt enough for me.

Looking at that Android phone, I was thinking what if I run the bot from it?

Quick search, then I found Termux. It allows me to run app in Linux settings without “root” access. That's great!

Now I need to decide how to write the bot. Few options in my mind, go simple with single node.js file or little adventure by running full framework app with Spring Boot + embedded DB H2 :)

Fast-forward >>

  • Git installed
  • JDK installed
  • Maven installed
  • Shell script to pull the source code from Github repo, with start/stop/restart options

Here it is,

The bot,

It was fun!

Share your thoughts how else we can do with this small old device?

--

--