JungDev / django-telegrambot

Simple app for Telegram bot in Django
BSD 3-Clause "New" or "Revised" License
237 stars 88 forks source link

update url patterns #40

Open lukruh opened 4 years ago

lukruh commented 4 years ago

Django provided some new functionality for url patterns. Even if it's backward compatible, it would be nice to update it some when. This is what djangos system check told me.

WARNINGS:
?: (urls.W002) Your URL pattern '/(?P<bot_token>.+?)/$' [name='webhook'] has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.

also update the include in the installation process.