Skip to content

A Telegram bot that receives a location and returns the times of the day to that location

Notifications You must be signed in to change notification settings

ZviCode/zmanim_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Hebcal Zmanim Telegram Bot

Overview

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.

Prerequisites

  1. Python Environment:

    • Ensure you have Python installed on your system.
  2. Dependencies:

    • Install the required Python packages using the following command:
      pip install pyrogram requests
  3. Telegram API Token:

    • Create a new Telegram bot on BotFather.
    • Obtain the API token for your bot.
  4. 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.
  5. Running the Bot:

    • Execute the script in a Python environment.
      python bot_zmanim.py

Bot Commands

  • Location Messages:
    • Send your location to the bot, and it will reply with the relevant Zmanim information for your location.

Note

  • 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.

License

This script is released under the MIT License.

About

A Telegram bot that receives a location and returns the times of the day to that location

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages