Skip to content

pera-soft/weather-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weatherbot

What Does WeatherBot?

When you send your locaion on telegram, weatherbot showed at the moment weather condition.

Built With They

Java Spring Telegram Weather Idea

How Works

architecture

Configuration

Telegram

Open Your telegram app and find telegram BotFather and write these word respectively

/start -> for starting 

/newbot -> for creating new bot

You will then be prompted to name your newly created bot.

WeatherApi

Then you will be prompted to pick a username of the bot that must be unique and also end in bot.

WeatherApi_bot

That is it, a token will be given to you when all transactions are finished. This unique code required for spring boot.

Spring Boot Dependencies For Telegram

<dependency>
    <groupId>org.telegram</groupId>
    <artifactId>telegrambots-spring-boot-starter</artifactId>
    <version>6.1.0</version>
</dependency>
<dependency>
    <groupId>org.telegram</groupId>
    <artifactId>telegrambots</artifactId>
    <version>${telegram.version}</version>
</dependency>

Weather Api

In this project we used the Weather Api, if you use this api, they give api token for the request. When you send latitude and longitude they give json objest about wheather status. Of course, you can include other apis.

Example

Contact

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages