Making $300 Per Month With A Telegram Bot?
Passive Income — Developed Using Python
--
The Idea
A few weeks ago I stumbled across this YouTube video by H-Educate and it blew my mind. The guy bought the PHP script of a URL shortener service, host it on his own website, and made hundreds of dollars by doing nothing.
So I decided to give it a shot and see whether I can actually make some real cash from providing a URL shorter service or not. However, my major problem was that I didn’t want to spend $30 on buying the script and whatsoever. Therefore, I started searching for some APIs that would allow me to shorten unlimited URL links free of charge or at least at a minimal cost.
I found a couple of websites like Bitly or Rebrandly but both of them had imposed limits on the number of URL links you can shorten (via their APIs) and when you surpass the limit you will be charged. This didn’t work for me since I wanted to keep the project as cost-effective as possible. After a little bit of more research I came across cuttly, one of the greatest websites that not only allows you to shorten as many links as you want for $0 but also let you keep track of your URLs and view their stats (see how many people clicked on your shortened link).
Creating the Bot
The next thing I had to deal with after choosing the cuttly API, was a way to present my service. Should I create a website, a mobile app, or a social media bot? Personally, my go-to option was to create a Telegram bot. I had created a lot of advanced Telegram bots previously and it’s an effortless job for me.
I am not going to explain the codes of the bot because It’s not what this article is intended for. Instead, I’ll mention the Python libraries I used for those who are interested:
- python-telegram-bot (to access Telegram)
- requests (to access Cuttly)
- redis (to access Redis database)
The GIF below shows the bot’s functionality: