This Python script is a Telegram bot that provides Zmanim (Jewish prayer times) information based on the user's location. The bot uses the Hebcal API to fetch accurate prayer times and sends a detailed response to location messages.
-
Python Environment:
- Ensure you have Python installed on your system.
-
Dependencies:
- Install the required Python packages using the following command:
pip install pyrogram requests
- Install the required Python packages using the following command:
-
Telegram API Token:
- Create a new Telegram bot on BotFather.
- Obtain the API token for your bot.
-
Initialize and Verify Session:
- The script utilizes Pyrogram for interacting with the Telegram API.
- Upon running the script, Pyrogram handles the initialization and session verification, creating a
my_account
file containing the bot's session details.
-
Running the Bot:
- Execute the script in a Python environment.
python bot_zmanim.py
- Execute the script in a Python environment.
- Location Messages:
- Send your location to the bot, and it will reply with the relevant Zmanim information for your location.
-
The Zmanim information is obtained from Hebcal, and the bot relies on Hebcal's data.
-
It's important to respect Hebcal's usage policies and guidelines.
This script is released under the MIT License.