oncall-engine/engine/apps/telegram/views.py
Vadim Stepanov 53d34164ef
Fix SQLite permission issue (#1984)
# What this PR does
Fixes https://github.com/grafana/oncall/issues/1960.

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2023-05-22 19:16:31 +00:00

13 lines
367 B
Python

from rest_framework.response import Response
from rest_framework.views import APIView
from apps.telegram.updates.update_manager import UpdateManager
class WebHookView(APIView):
def get(self, request, format=None):
return Response("hello")
def post(self, request):
UpdateManager.process_request(request)
return Response(status=200)