Online Song Search Telegram Bot

Introduction

This is source code of a telegram bot which is used to search a particular song on various platforms and provide links. It also provide a mp3 file of the song.

How to Use?

Prerequisites

It is presumed that you have installed nodejs and npm on your system.

1. Get Telegram Bot Token From BotFather

Step 1. Find telegram bot named @botfather, he will help you with creating and managing your bot.

Step 2. Print “/help” and you will see all possible commands that the botfather can operate.

Step 3. To create a new bot type “/newbot” or click on it.

Follow instructions he given and create a new name to your bot. If you are making a bot only for experimentation, as it has to be a unique name, you can use namespace your bot by placing your name before it in its username. By the way, its screen name can be anything you like.

Step 4. Congratulations! You've just created your Telegram bot. You will see a new API token generated for it. In sample above it's 270485614:AAHfiqksKZ8WmR2zSjiQ7_v4TMAKdiHm9T0

Copy your API token to the variable called "bot_token".

2. Clone This Repository.

git clone git@github.com:lakebrains-technologies/online_song_search_telegram_bot.git

3. Install The Packages.

cd online_song_search_telegram_bot/song_searchhh_bot
npm install

4. Run Bot.

node main.js

Output