Skip to content

tecwindow/TG_BOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

TG_BOT - Quran Verse Telegram Bot

سكربت Python بسيط يقوم بنشر آية عشوائية من القرآن الكريم تلقائيًا إلى قناة أو مجموعة على تيليجرام كل ساعتين.

المميزات

  • نشر آية عشوائية من القرآن الكريم مع اسم السورة ورقم الآية.
  • قراءة الآيات من ملف محلي quran.json لضمان السرعة والاعتمادية.
  • استخدام متغيرات البيئة (.env) لتخزين بيانات API بشكل آمن.
  • مصمم للعمل بسلاسة كـ Cron Job مجدول على خادم Linux أو VPS.

المتطلبات

  • Python 3.x
  • مكتبة requests
  • مكتبة python-dotenv

التثبيت والإعداد

1. رفع الملفات

قم برفع ملف السكربت (bot.py) وملف quran.json إلى المجلد المخصص على الخادم، على سبيل المثال:

/home/Bot/

2. تثبيت المكتبات

pip install requests python-dotenv

#English

A simple Python script that automatically posts a random Quran verse to a Telegram channel or group every two hours.

Features

  • Posts a random Quran verse along with the Surah name and Ayah number.
  • Reads verses from a local quran.json file for fast and reliable execution.
  • Uses environment variables (.env) to securely store API credentials.
  • Designed to run seamlessly as a scheduled Cron job on a Linux/VPS server.

Prerequisites

  • Python 3.x
  • requests library
  • python-dotenv library

Installation & Setup

1. Upload Files

Upload the script (bot.py) and the quran.json file to your designated directory on the server, for example:

/home/Bot/

2. Install Dependencies

pip install requests python-dotenv

About

A bot posts a verse every two hours in a Telegram channel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages