Our great sponsors
- Sonar - Write Clean Python Code. Always.
- ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
- InfluxDB - Access the most powerful time series database as a service
-
async-state-machine-telegram-bot-example
Example code with async state machine connected to telegram
So to demonstrate let's start with the CLI to handle our task. The CLI will ask us for the city name, and will print current temperature there. This will represent our business logic. I've found some simple open API to get the weather and city coordinates called Open-Meteo. And drafted the script (commit):
-
python-telegram-bot I could not refuse
-
Sonar
Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.
-
pydantic optional, I use it for fancy env variable parsing
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.