diff --git a/assets/pasted-20260207-143602-cafd6a6e.jpg b/assets/pasted-20260207-143602-cafd6a6e.jpg new file mode 100644 index 0000000..a435be1 Binary files /dev/null and b/assets/pasted-20260207-143602-cafd6a6e.jpg differ diff --git a/assets/pasted-20260207-144449-0aa0428f.jpg b/assets/pasted-20260207-144449-0aa0428f.jpg new file mode 100644 index 0000000..44d74d2 Binary files /dev/null and b/assets/pasted-20260207-144449-0aa0428f.jpg differ diff --git a/assets/pasted-20260207-144713-9a0f04f5.jpg b/assets/pasted-20260207-144713-9a0f04f5.jpg new file mode 100644 index 0000000..a2bac80 Binary files /dev/null and b/assets/pasted-20260207-144713-9a0f04f5.jpg differ diff --git a/assets/pasted-20260207-145042-94187b95.jpg b/assets/pasted-20260207-145042-94187b95.jpg new file mode 100644 index 0000000..296d2d6 Binary files /dev/null and b/assets/pasted-20260207-145042-94187b95.jpg differ diff --git a/bridge.log b/bridge.log new file mode 100644 index 0000000..e69de29 diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index fccbac6..a4b05a0 100644 Binary files a/core/__pycache__/models.cpython-311.pyc and b/core/__pycache__/models.cpython-311.pyc differ diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc index 0506fe0..526ea86 100644 Binary files a/core/__pycache__/urls.cpython-311.pyc and b/core/__pycache__/urls.cpython-311.pyc differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 24fe1b7..584b13c 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/migrations/0002_botsettings_whatsapp_access_token_and_more.py b/core/migrations/0002_botsettings_whatsapp_access_token_and_more.py new file mode 100644 index 0000000..d159df4 --- /dev/null +++ b/core/migrations/0002_botsettings_whatsapp_access_token_and_more.py @@ -0,0 +1,23 @@ +# Generated by Django 5.2.7 on 2026-02-07 14:28 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='botsettings', + name='whatsapp_access_token', + field=models.CharField(blank=True, help_text='Meta Graph API Access Token', max_length=500, null=True), + ), + migrations.AddField( + model_name='botsettings', + name='whatsapp_phone_number_id', + field=models.CharField(blank=True, help_text='WhatsApp Phone Number ID', max_length=50, null=True), + ), + ] diff --git a/core/migrations/__pycache__/0002_botsettings_whatsapp_access_token_and_more.cpython-311.pyc b/core/migrations/__pycache__/0002_botsettings_whatsapp_access_token_and_more.cpython-311.pyc new file mode 100644 index 0000000..9e7763f Binary files /dev/null and b/core/migrations/__pycache__/0002_botsettings_whatsapp_access_token_and_more.cpython-311.pyc differ diff --git a/core/models.py b/core/models.py index cced9e9..9ba9708 100644 --- a/core/models.py +++ b/core/models.py @@ -4,6 +4,8 @@ class BotSettings(models.Model): system_prompt = models.TextField(default="You are a helpful assistant.") is_active = models.BooleanField(default=True) verify_token = models.CharField(max_length=255, default="my_secure_token_123") + whatsapp_access_token = models.CharField(max_length=500, blank=True, null=True, help_text="Meta Graph API Access Token") + whatsapp_phone_number_id = models.CharField(max_length=50, blank=True, null=True, help_text="WhatsApp Phone Number ID") def __str__(self): return f"Bot Settings (Active: {self.is_active})" @@ -15,4 +17,4 @@ class Message(models.Model): timestamp = models.DateTimeField(auto_now_add=True) def __str__(self): - return f"From {self.sender_number} at {self.timestamp}" \ No newline at end of file + return f"From {self.sender_number} at {self.timestamp}" diff --git a/core/templates/core/settings.html b/core/templates/core/settings.html index 568554a..a9c9b1a 100644 --- a/core/templates/core/settings.html +++ b/core/templates/core/settings.html @@ -5,27 +5,65 @@ {% block content %}
+ Connect your existing WhatsApp account using the Link Device feature. + Enter your number below to generate a pairing code. +
+ +