This Python script checks appointment availability on the Kosmos Visa system for the next 30 days and sends a notification to a specified Telegram chat when appointments are available. The script runs in a loop and checks for new appointments every 10 minutes.
- Fetches appointment quota information for a specified nationality, dealer, and appointment type.
- Sends Telegram notifications when new appointments are available.
- Configurable for different application types and appointment types.
To run this script, you need the following:
- Python 3.x installed on your machine.
- Install the required libraries using
pip:pip install curl_cffi
-
Clone or Download the Repository
Clone the repository or download the script to your local machine. -
Set Your Configuration
Modify the following in the script with your own values:TELEGRAM_BOT_TOKEN: Your Telegram bot token. Create a bot using BotFather if you don't have one.CHAT_ID: The chat ID where you want to receive notifications. You can find this by messaging your bot and inspecting the response.nationality_number: Set the nationality number for the applicant.dealer_id: Set the dealer ID for your case.application_type: Choose betweenINDIVIDUALorFAMILYfor the application type.appointment_type: Choose betweenSTANDARD,VIP, orEEA_AB_SPOUSEfor the appointment type.
-
Run the Script
Run the script using Python:python bot.py