| Description | Getting Started | Built With | Author | License |
This Telegram Bot can provide users information about weather
You can get weather for:
- Today
- Tomorrow
- Week
- 12 hours
It has possibility of day-to-day subscribing
Information receives from the OpenWeatherAPI
- Download project
- Install java version 14 or newer
- Install Maven dependencies
- Run Main.java from the IntelliJ IDE
- Find bot
@T1WEATHER_bot
link - Write the name of your city. (Ex.: Moscow)
- /today Сегодня - getting this day weather
- /tomorrow Завтра - getting next day weather
- /week Неделя - getting weather for the 7 days
- /hours 12 часов - getting weather for every of the next 12 hours
- /subscribe Подписаться - get today weather every day
- /unsubscribe Отписаться - break subscribing
Your chatID must be in the list for getting you administrative access
Just write to the bot command starting with $ to receiving logs
- $telegram - telegram.log - messages
- $weather - weather.log - requests to openweather API and responses
- $errors - errors.log - exception traces
- $key - keys.txt - api key using now
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>1.7.13</version>
</dependency>
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots</artifactId>
<version>5.0.1</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.6</version>
</dependency>
This bot is ready for deployment, and already deployd on the heroku.com
See:
- Java 14 - Language
- Maven - Dependency Management
- TelegramBots - Library to interacting with Telegram
- Gson - Library used for deserializing json
- Log4j - Logging
This project is licensed under the v3.0 License - see the LICENSE file for details