improves the value associated with "user_was_online" by accounting for the 5 different Telethon TypeUserStatus classes.
Adds a unit test for this new functionality, adds Pytest as a development dependency, and creates a GitHub action to run tests in CI (check it out in this PR's checks section!)
Modernizes the program to use Python's asyncio library (no more IDE complaints!)
Adds black and isort as dev dependencies. black is a formatter and isort sorts imports.
Autogenerates requirements.txt and requirements-dev.txt to include package hashes. This is a recommended practice and improves security.
The only user-facing change is that "user_was_online" is now more detailed since it accounts for users who were last seen recently/last week/last month/currently online.
This PR:
"user_was_online"
by accounting for the 5 different TelethonTypeUserStatus
classes.asyncio
library (no more IDE complaints!)black
andisort
as dev dependencies.black
is a formatter andisort
sorts imports.requirements.txt
andrequirements-dev.txt
to include package hashes. This is a recommended practice and improves security.The only user-facing change is that
"user_was_online"
is now more detailed since it accounts for users who were last seen recently/last week/last month/currently online.