This is a small service that integrates directly with the Telegram TL-schema api and exposes many of the methods in a friendly RESTful format.
Mono 4.6.2 or higher. Tested on Apache with mod_mono.
This project is unmaintained. I created this for enl.io's Telegram integration but we've since moved to using the official http based Telegram Bot Api and MadelineProto for features not supported by the bot api.
The methods available in this api are briefly listed below and in more detail at /swagger.
- POST /channels
- POST /channels/{channelId}/users/{userId}/role
- GET /channels/{channelId}
- POST /channels/invite
- POST /channels/remove
- GET /channels/{channelId}/history
- POST /chats
- POST /chats/{chatId}/admin-toggle
- POST /chats/{chatId}/send-message
- POST /chats/{chatId}/is-admin
- POST /chats/{chatId}/add
- POST /chats/{chatId}/remove
- POST /chats/{chatId}/rename
- GET /chats/{chatId}/history
- GET /chats/{chatId}/members
- POST /chats/{chatId}/migrate
These endpoints are just for getting the api connected and checking it's status.
- GET /config/status
- GET /config/signin
- POST /config/verify
- GET /users/contacts
- GET /users/chats
- GET /users
- GET /users/{userId}/history