Skip to content

Pure Python 3 MTProto API Telegram client library, for bots too!

License

Notifications You must be signed in to change notification settings

Ol1vaw/Telethon

 
 

Repository files navigation

Telegram Rental Property Filter

A Python script that monitors Telegram channels for rental property listings and forwards matching ones based on user-defined criteria.

Features

  • Monitors specified Telegram channels for rental property listings
  • Filters messages based on:
    • Price range
    • Location (city)
    • Number of bedrooms
    • Property type (apartments/offices)
    • Time period
  • Forwards matching listings to a target channel
  • Supports both direct message forwarding and link sharing
  • Detailed statistics and analysis of processed messages

Requirements

  • Python 3.7+
  • Telethon library
  • python-dotenv

Installation

  1. Clone the repository:
git clone [repository-url]
cd telegram-rental-filter
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file in the scripts directory with your Telegram API credentials:
TG_API_ID=your_api_id
TG_API_HASH=your_api_hash
TG_PHONE=your_phone_number
TG_CHANNEL=@source_channel
TG_TARGET=target_channel_id
TG_SESSION=session_name

Usage

  1. List available dialogs (optional):
python scripts/list_dialogs.py
  1. Run the rental filter:
python scripts/rental_filter.py

The script will use predefined criteria for filtering messages. You can modify these criteria in the filter_criteria dictionary in rental_filter.py.

Configuration

Default filtering criteria:

  • Price: 1500€ - 3000€
  • Location: Limassol
  • Bedrooms: 3-10
  • Property type: apartments
  • Time period: Last 24 hours

License

MIT License

About

Pure Python 3 MTProto API Telegram client library, for bots too!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.8%
  • CSS 0.8%
  • HTML 0.7%
  • JavaScript 0.6%
  • Batchfile 0.1%
  • Makefile 0.0%