A Telegram bot built with Python that allows users to search listings from Divar and retrieve real-time results directly inside Telegram.
- Search listings by category
- Select city dynamically
- Scrapes Divar API
- Clean structured responses
- Persian number conversion
- Python 3
- python-telegram-bot
- requests
- Git
-
Clone the repository: git clone https://github.com/yourusername/divar-telegram-bot.git
-
Navigate into the project folder: cd divar-telegram-bot
-
Install dependencies: pip install -r requirements.txt
-
Add your Telegram Bot Token
-
Run the bot: python main.py
main.py → Telegram bot logic
scrap.py → Divar scraping functions
config.py → Configuration (Token, cities, categories)
requirements.txt → Dependencies
Instead of hardcoding the token, use: