Releases: ohld/django-telegram-bot
Releases · ohld/django-telegram-bot
Remove unnecessary, update readme
Separate django app and bot handlers logic
Before:
- tgbot handlers are messed with django
tgbot
app
After:
tgbot
is a separate folder, which contains logic only about bot, not about users, views, models and so on- separated dispatcher and
system_commands
which are displayed in the main menu - created new django app
users
Some minor fixes
- postgresql url in
.env_example
- freeze versions in
requirements.txt
- fix typo: pooling -> polling
- dont broadcast message to users via Celery if DEBUG=True
Enhance
Migrate to PositiveBigIntegerField and other minor fixes
- Using
PositiveBigIntegerField
for user telegram ids - Add context: CallbackContext typing
- Remove unused fields from
User
model - Add
GetOrNoneManager
. Example of using:user = User.objects.get_or_none(user_id=<some_id>)
- Add
AdminManager
. You can select all admins viaUser.admins.all()
instead ofUser.objects.filter(is_admin=True)