Skip to content

🌦🤖 Telegram bot for getting weather. Has possibility of subscribing

License

Notifications You must be signed in to change notification settings

T1GIT/Weather_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Weather Telegram Bot

Description

This Telegram Bot can provide users information about weather

You can get weather for:

  1. Today
  2. Tomorrow
  3. Week
  4. 12 hours

It has possibility of day-to-day subscribing

Information receives from the OpenWeatherAPI

Getting Started

  1. Download project
  2. Install java version 14 or newer
  3. Install Maven dependencies
  4. Run Main.java from the IntelliJ IDE

Using

  1. Find bot @T1WEATHER_bot link
  2. Write the name of your city. (Ex.: Moscow)

Basic

  • /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

Administrating

Your chatID must be in the list for getting you administrative access

Just write to the bot command starting with $ to receiving logs

Maven dependencies

<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>

Deployment

This bot is ready for deployment, and already deployd on the heroku.com

See:

Built With

Author

Student of the Financial University

Group: PI19-5

License

This project is licensed under the v3.0 License - see the LICENSE file for details

Version 1.2

09.12.2020

About

🌦🤖 Telegram bot for getting weather. Has possibility of subscribing

Resources

License

Stars

Watchers

Forks