(20250121) With APIs to send, list, and update tags on WhatsApp messages (through Nimbus).

This commit is contained in:
2025-01-21 15:27:53 +05:30
parent f94d9e1a4b
commit cadbc19f28
13 changed files with 498 additions and 182 deletions
+11 -2
View File
@@ -62,14 +62,17 @@ from utils_v2.api.async_quart import (
# GMail-related utils:
from utils_v2.goog.controllers.gmail.gmail_client import AsyncGmailClient
# Chat clients:
from utils_v2.whatsapp.nimbus.controllers.async_nimbus_whatsapp import AsyncNimbusWhatsapp
# Core Controller Models:
from controllers.core.message import CoreMessageController
# from controllers.core.auth_token import CoreAuthTokenController
from controllers.core.ai.llm import CoreLLMController
from controllers.core.payment import CorePaymentController
# API Controller Models:
from controllers.api.mail import MailController
# # API Controller Models:
# from controllers.api.mail import MailController
# from controllers.api.sms import SMSController
# from controllers.api.payment import PaymentController
@@ -118,6 +121,9 @@ from api.blueprints.message.sms.tags import sms_update_tags_bp
# Chat Blueprints:
from api.blueprints.message.chat.auth import chat_auth_bp
# from api.blueprints.message.chat.webhook import chat_webhook_bp
from api.blueprints.message.chat.send import chat_send_bp
from api.blueprints.message.chat.list import chat_list_bp
from api.blueprints.message.chat.tags import chat_update_tags_bp
# Software Blueprints:
from api.blueprints.software.auth import sw_auth_bp
@@ -187,6 +193,9 @@ app.register_blueprint(sms_update_tags_bp, url_prefix = f"/{MODULE_BASE}/sms")
# Chat Blueprints:
app.register_blueprint(chat_auth_bp, url_prefix = f"/{MODULE_BASE}/chat")
# app.register_blueprint(chat_webhook_bp, url_prefix = f"/{MODULE_BASE}/chat")
app.register_blueprint(chat_send_bp, url_prefix = f"/{MODULE_BASE}/chat")
app.register_blueprint(chat_list_bp, url_prefix = f"/{MODULE_BASE}/chat")
app.register_blueprint(chat_update_tags_bp, url_prefix = f"/{MODULE_BASE}/chat")
# Software Blueprints:
app.register_blueprint(sw_auth_bp, url_prefix = f"/{MODULE_BASE}/software")