push messages to telegram from contactUs form

This commit is contained in:
2025-05-22 16:40:13 +03:00
parent 29d3af2ea1
commit 2b902ef0c9
6 changed files with 32 additions and 23 deletions

View File

@@ -26,7 +26,8 @@ class TelegramSerializer(serializers.Serializer):
("main", "Main"),
("admin", "Admin"),
("userAccount", "Account"),
("contact-us", "Contact Us")
("contactUs", "Contact Us"),
("support", "Support")
]
source = serializers.ChoiceField(choices=SOURCE_CHOICES)

View File

@@ -18,7 +18,7 @@ GetMembershipData)
urlpatterns = [
path("v1/faq/", FAQView.as_view(), name='faqMain'),
path("v1/news/", NewsView.as_view(), name="newsmain"),
path("v1/send-message", TelegramMessageView.as_view(), name='send_message'),
path("v1/send-message/", TelegramMessageView.as_view(), name='send_message'),
path("v1/latest-routes/", LatestRoutesView.as_view(), name='latest_routes'),
path("auth/refresh/", RefreshTokenView.as_view(), name="token-refresh"),