A high-performance, edge-deployed MTProto gateway with advanced features including:
Main MTProto API endpoint for JSON-based requests.
{
"method": "auth.sendCode",
"params": {
"phone_number": "+1234567890"
},
"sessionId": "optional-session-id",
"dcId": 1
}
WebSocket endpoint for real-time MTProto communication.
Health check endpoint for monitoring service status.
Metrics endpoint for performance monitoring.
auth.sendCode - Send verification codeauth.signIn - Sign in with phone and codeusers.getFullUser - Get user informationmessages.getDialogs - Get chat listmessages.getHistory - Get message historymessages.sendMessage - Send a messageupdates.getState - Get updates stateping - Ping the serverThe API enforces rate limits to prevent abuse:
All errors are returned in a consistent format:
{
"error": {
"code": 400,
"message": "Error description",
"type": "ERROR_TYPE"
}
}