Skip to content

HirbodBehnam/TehranAirNowBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tehran Airnow Telegram Bot

A simple bot to fetch data from airnow.tehran.ir

Installing

At first install Golang. Then install dependeries like this:

go get github.com/PuerkitoBio/goquery github.com/go-telegram-bot-api/telegram-bot-api github.com/grokify/html-strip-tags-go

Also make sure you are using golang > 1.12

Then clone this repertory and run go make main.go. Run the program with your bot token as argument.

Using

You can either use inline queries to get statics or sending the bot /airnow

Also you can add the bot to your groups and call it from there.

Live Bot

Here is a live version of bot.

I try to keep this bot alive.