OTP-Boss Bot is a Telegram bot integrated with Twilio Voice API and ElevenLabs Text-to-Speech API. This bot is designed for managing subscriptions, generating calls with voice messages, and handling OTP-based scenarios for authentication or verification.
Features
Subscription Management
Check subscription status.
Add new subscriptions.
Notify users when a subscription expires.
Call Functionality
Initiate calls using Twilio API.
Generate and play voice scripts with ElevenLabs Text-to-Speech API.
Handle OTP verification through calls.
User Commands
/start: Initiate the bot and create default user settings.
OTP-Boss Bot
OTP-Boss Bot is a Telegram bot integrated with Twilio Voice API and ElevenLabs Text-to-Speech API. This bot is designed for managing subscriptions, generating calls with voice messages, and handling OTP-based scenarios for authentication or verification.
Features
Subscription Management
Call Functionality
User Commands
/start: Initiate the bot and create default user settings./check: Check subscription status./call [Phone Number] [Name] [Code] [Company Name]: Initiate a custom call./add_subs [User ID] [Number of Days]: Add subscription days for a user (Admin only)./help: List available commands.Voice Interaction
Prerequisites
APIs and Libraries:
Environment Setup:
requirements.txt.Configuration:
conf/settings.txtshould include the following keys:Installation
Download the Repository
Install Dependencies:
Set Up Configuration:
conf/directory and add thesettings.txtconfiguration file as described above.Run the Bot:
Run the Flask Server (for handling Twilio responses):
File Structure
Commands Overview
Public Commands
/start: Initialize the bot./check: Display the subscription status./call [Phone Number] [Name] [Code] [Company Name]: Start a call with specified details.Admin Commands
/add_subs [User ID] [Number of Days]: Add subscription days to a user.Informational Commands
/help: Display a list of available commands and their descriptions.Environment Variables
For secure handling of credentials, you can use environment variables. Update your
settings.txtto read these variables:Deployment
Local Deployment
Server Deployment
Future Enhancements
Contribution
Fork this repository and send pull requests and drop stars to the repo.
License
This project is licensed under the MIT License. See the
LICENSEfile for more information.