Skip to content

Holy Qur'an Telegram Bot with pagination and audio, in Indonesian language.

License

Notifications You must be signed in to change notification settings

riozee/quran-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quran-telegram-bot

Contributions are Welcome!

Demo

@fio_quran_bot

Run

Tested on Node.js v14.x.x with NPM v6.x.x, Windows 10 and Ubuntu 18.04.6 LTS.

  1. Create bot using @BotFather, save the bot token.
  2. Get your Telegram user ID. You can get your user ID using the available bots (search for "user id bot" in Telegram).
  3. Clone this project
$ git clone https://github.com/riozec/quran-telegram-bot
$ cd quran-telegram-bot
  1. 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"
  1. Build and run the bot.
$ npm install
$ npm run build
$ npm start
  1. 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:

    1. Send /getsurahaudiofileid command to the bot. The bot will respond with an "OK".
    2. Open this channel and forward all audios to the bot (114 audios).
    3. The bot will respond with a "Done" if it has done saving the 114 audios.
  2. (Optional) You can save the file_id of the short tutorial video in the channel to show it in the /start command.

    1. Forward the video to the bot.
    2. Quote the video, and send this command:
    /eval ctx.message.reply_to_message.animation.file_id
    
    1. Copy the file_id, and paste it to the .env file by adding this line:
    START_VIDEO_TUTORIAL_FILE_ID="FILE_ID HERE"
    

Thanks to

  • Allah SWT
  • Telegraf
  • Ecoslow
  • LoLHuman
  • Everyayah.com
  • Equran.id
  • semarketir/quranjson
  • rioastamal/quran-json
  • And other sources of data, written in the files.

Donation

  • 0877-2271-3834 (DANA)
  • 0851-5823-1152 (OVO, ShopeePay)

About

Holy Qur'an Telegram Bot with pagination and audio, in Indonesian language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published