Command-line interface documentation for Telegram Multi-Account Message Sender.
python main.pyOr if installed via pip:
python -m app.cliThe application primarily uses a GUI interface. For programmatic access, use the Python API.
from app.services import initialize_database, get_settings
from app.models import Account, Campaign
# Initialize database
initialize_database()
# Get settings
settings = get_settings()
# Access models
accounts = Account.get_all()
campaigns = Campaign.get_all()Configure the application using environment variables:
export TELEGRAM_API_ID="your_api_id"
export TELEGRAM_API_HASH="your_api_hash"
export LOG_LEVEL="INFO"from app.core.engine import MessageEngine
from app.models import Account, Recipient
engine = MessageEngine()
account = Account.get_by_id(1)
recipient = Recipient.get_by_id(1)
engine.send_message(
account=account,
recipient=recipient,
message="Hello, World!"
)- API Documentation for complete API reference
- Usage Guide for GUI usage
- Examples for more examples