Skip to content

livz/LanaBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Telegram weather bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages