url exception for telegram webhooks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ekaropolus 2025-05-20 02:31:17 -06:00
parent bc7a8c5625
commit 7414c37c77

View File

@ -33,6 +33,12 @@ EXEMPT_URLS += [
re.compile(r"^pxy_whatsapp/webhook/verify/?$"),
]
# Webhook de Telegram
EXEMPT_URLS += [
"bots/webhook/", # prefijo general
re.compile(r"^bots/webhook/.+/$"), # con <bot_name> al final
]
class LoginRequiredMiddleware(MiddlewareMixin):
def process_request(self, request):