A simple bot to fetch data from airnow.tehran.ir
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.
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.
Here is a live version of bot.
I try to keep this bot alive.