When integrating the login via telegram for Django, I received the following error (despite the fact that all actions were done correctly)
Bot domain invalid error
I've been tinkering with this for a couple of days and just want to share a solution.
The solution is simple and pretty funny. Just remove
"django.middleware.security.SecurityMiddleware"
from MIDDLEWARE