Telegram weather bot
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
.gitignore
README.md
banner
lanabot.py

README.md

LanaBot

This started as a learning project as my friend wanted to learn Python and to know how APIs work in practice. I've used the Telegram API to get a basic bot up and running. Currently it is just a basic weather bot ⛅️ but feel free to take it and expand it as you wish!

Planned features:

  • Deployment on Raspberry PI
  • Take pictures with Picamera
  • Other cool AI :) features

The configuration file needs to be defined. Example of config.ini file:

[Settings]
; Telegram API token, from @Botfather
TOKEN = 111111:AAAAaaaaaaaaaaaaa

; Long polling interval, in seconds. How long to keep connection open
POLLING_TIMEOUT = 100

; Open Weather Map API Key
OWM_KEY = a3b2d786c264b21e6f3708c2bf4bc60

Props to Gareth Dwyer 👍 and his Chatbot tutorial, from which the inspiration to this, and some very handy implementation hints, came.

Screenshots

Back-end:

Getting updates

Start interacting with the bot:

Bot intro

Chose location for weather status:

Choose location

Weather for current location:

Share location

Made with ❤️ and: