# 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)
13 lines
367 B
Python
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)
|