# app/core/gateways/custom.py from app.core.base import BaseGateway class CustomGateway(BaseGateway): def send(self, to: str, text: str): response = requests.post( "https://api.smsgateway.com/send", json="to": to, "msg": text, headers="Authorization": "Bearer YOUR_TOKEN" ) return response.ok
SMS_GATEWAY=twilio TWILIO_ACCOUNT_SID=your_sid TWILIO_AUTH_TOKEN=your_token TWILIO_PHONE_NUMBER=+1234567890 VONAGE_API_KEY=your_key VONAGE_API_SECRET=your_secret 4️⃣ Run database migrations python scripts/migrate.py 5️⃣ Start the application # CLI mode python scripts/send_bulk.py --file data/recipients.csv --message "Hello name" API server uvicorn app.api.main:app --reload With Docker docker-compose up -d 🧪 Usage Examples 📤 Send from CSV python scripts/send_bulk.py \ --file contacts.csv \ --template "Hi name, your OTP is otp" \ --gateway twilio \ --delay 2 CSV format: bulk sms-sender github