Telegram API Service

Real MTProto integration with modular architecture

📚 API Documentation

🚀 Available Endpoints (41+ Total)

POST /api/validate-session

Validates a Telegram session and returns detailed user information

POST /api/users/*

User management: get users, photos, blocked users, update profile

POST /api/channels/*

Channel operations: similar channels, info, participants, search, join/leave

POST /api/chats/*

Chat management: dialogs, create groups, archive, mute, report

POST /api/messages/*

Messaging: send, forward, delete, pin, mark as read, typing indicators

POST /api/media/*

Media operations: download, file info, set/delete chat photos

POST /api/payments/*

Payment processing: forms, receipts, gift codes, giveaways, bank cards

View the comprehensive documentation above for detailed endpoint information and schemas.

🛠️ Technology Stack

TypeScript Telegram MTProto gramjs Vercel OpenAPI 3.0

📖 Quick Start

All endpoints require Telegram API credentials in the request headers for security:

Headers: X-Api-Id: 12345 X-Api-Hash: your-api-hash X-Session-String: your-session-string X-User-Id: 123456789 Body: { "channelId": "channel_username", "limit": 10 }

Check out the interactive documentation for detailed examples and schemas.