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.
Back-end:
Start interacting with the bot:
Chose location for weather status:
Weather for current location:
- Python
- Telegram Bot API
- Markdown Editor
- SQLite Lightwight disk-based database
- ASCII Art ASCII Text Signature Generator
- GitHub Markdown Emoji