Skip to content

Commit b38d5c1

Browse files
authored
Update README.md
1 parent 491f001 commit b38d5c1

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,19 @@ Weather bot for Telegram Messenger with multiple APIs and bookmarks support.
3333

3434
1. Install [.NET 8 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) for your platform
3535
2. Download the [latest release](https://github.com/mlad/weather-bot/releases) or [build it yourself](#building), unpack the archive
36-
3. Run `WeatherBot` (Linux) or `WeatherBot.exe` (Windows), the app will create `configuration.json` file and exit
36+
3. Run `WeatherBot[.exe]`, the app will create `configuration.json` file and exit
3737
4. Open created configuration file and fill the following properties:
38-
- `TelegramBotToken` with a Telegram bot API token (can be obtained from [@BotFather](https://t.me/BotFather) bot)
39-
- `OpenWeatherMap:ApiToken` with Open Weather Map API token (register [here](https://home.openweathermap.org/users/sign_up)), or completely remove `OpenWeatherMap` section
40-
- `AccuWeather:ApiToken` with AccuWeather API token (register [here](https://developer.accuweather.com/user/register)), or completely remove `AccuWeather` section
38+
```jsonc
39+
{
40+
"TelegramBotToken": "", // Telegram bot API token (get from @BotFather)
41+
"OpenWeatherMap": {
42+
"ApiToken": "" // Optionally, OpenWeatherMap token (or completely remove "OpenWeatherMap" section)
43+
},
44+
"AccuWeather": {
45+
"ApiToken": "" // Optionally, AccuWeather token (or completely remove "AccuWeather" section)
46+
}
47+
}
48+
```
4149
5. Run the application again. If authorization is successful, console will display "Logged-in as {bot name}"
4250
6. Send `/start` or `/help` to the bot to get list of commands. Share a location to get weather
4351

0 commit comments

Comments
 (0)