1.4 - Telegram support

This commit is contained in:
Daniel Mason 2022-01-22 12:42:24 +13:00
parent 07d0e82dff
commit 6e1c259d9e
10 changed files with 139 additions and 5 deletions

View file

@ -57,7 +57,7 @@ func fetchAPILocations() (ApiResponse, error) {
}
// Set user-agent info
req.Header.Set("User-Agent", "NZCovidBot/1.3 (https://m2.nz)")
req.Header.Set("User-Agent", "NZCovidBot/1.4 (https://m2.nz)")
// Fire off the request
resp, err := client.Do(req)
@ -123,7 +123,6 @@ func getNewAPILocations() {
}
}
}
}
// Make sure to clear out the previous list and append new data in a map based on location