Skip to content

prabeshAryal/USAVisaSlotNotifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

  1. Introduction
    1. Abot Bot
  2. Get All Variables
    1. BOT Token
    2. City Code
    3. VISA Type
    4. Chat ID's
  3. Required Softwares
    1. Python
      1. PIPs
  4. Deploy
  5. License

Read this throughly before deploying the bot:

What is this bot about?

This bot is make specifically for one purpose. That is to monitor visa appointment schedules in your screen and notify you in Telegram whenever there is change in available dates.

Get Variables

Bot Token

  • You can get Telegram Bot Token from BotFather bot on telegram.

Getting City Code

You've to get your city code from this site by inspecting network headers.

  • First visit site
  • Open Devleoper Tools and switch to network
  • Search your city name
  • Click the last item on network tab, Examine the Request URL
  • https://travel.state.gov/content/travel/resources/database/database.getVisaWaitTimes.html?cid=P50&aid=VisaWaitTimesHomePage, Here the P50 is your city code for city 'Chisinau'.

Visa Type

You need to know what type of visa date to be notified with. The corresponding number is your visa type.

  • 0 for Interview Required Visitors (B1/B2)
  • 1 for Interview Required Students/Exchange Visitors (F, M, J)
  • 2 for Interview Required Petition-Based Temporary Workers (H, L, O, P, Q)
  • 3 for Interview Required Crew and Transit (C, D, C1/D)
  • 4 for Interview Waiver Students/Exchange Visitors (F, M, J)
  • 5 for Interview Waiver Petition-Based Temporary Workers (H, L, O, P, Q)
  • 6 for Interview Waiver Visitors (B1/B2)
  • 7 for Interview Waiver Crew and Transit (C, D, C1/D)

Getting Chat Ids

  • /info @username for public groups/users/channels
  • For private channels or users you have to add bot and users in one same group and send /info command (by mentioning for users)

Download Softwares and Languages

Python

Download Python From here :

While installing, tick install path / environment variables whatever is given

Python Snippets

  • Install required python snippets using commands below:
  • pip3 install -r requirements.txt
  • Install all other missing modules using :
  • pip install missing_module_name

Deploying the bot

  • Install Python, Python Snippets using above methods
  • Download all files in this repo.
  • Insert Bot Token, User ID in SAMPLE.env file and rename it to .env.

Type one of the following command on terminal to run bot:

  • py main.py
  • python main.py
  • python3 main.py

License

Distributed Under GPL by @PrabeshAryalNP on social or @PrabeshAryal on code sites.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages