Contributions are Welcome!
Tested on Node.js v14.x.x with NPM v6.x.x, Windows 10 and Ubuntu 18.04.6 LTS.
- Create bot using @BotFather, save the bot token.
- Get your Telegram user ID. You can get your user ID using the available bots (search for "user id bot" in Telegram).
- Clone this project
$ git clone https://github.com/riozec/quran-telegram-bot
$ cd quran-telegram-bot
- Create a
.env
file, write down your bot token and API key here.
# create .env file in the quran-telegram-bot folder
$ touch .env
# open and edit the .env file
$ nano .env
Write to .env
file:
BOT_TOKEN="YOUR BOT TOKEN"
OWNER_USER_ID="YOUR USER ID"
- Build and run the bot.
$ npm install
$ npm run build
$ npm start
-
Now the bot is running, but can't send surah audios. Because Telegram bot can't send more than 50 MB, you need a
file_id
of already uploaded file. In order to solve this, you need to manually forward all surah audios to the bot. Here's the steps:- Send
/getsurahaudiofileid
command to the bot. The bot will respond with an"OK"
. - Open this channel and forward all audios to the bot (114 audios).
- The bot will respond with a
"Done"
if it has done saving the 114 audios.
- Send
-
(Optional) You can save the
file_id
of the short tutorial video in the channel to show it in the/start
command.- Forward the video to the bot.
- Quote the video, and send this command:
/eval ctx.message.reply_to_message.animation.file_id
- Copy the
file_id
, and paste it to the.env
file by adding this line:
START_VIDEO_TUTORIAL_FILE_ID="FILE_ID HERE"
- Allah SWT
- Telegraf
- Ecoslow
- LoLHuman
- Everyayah.com
- Equran.id
- semarketir/quranjson
- rioastamal/quran-json
- And other sources of data, written in the files.
- 0877-2271-3834 (DANA)
- 0851-5823-1152 (OVO, ShopeePay)