This question already has an answer here:
I am studying Telegram API to develop a web-based app to communicate with Telegram API server but stumble upon this statement.
The protocol is designed for access to a server API from applications running on mobile devices. It must be emphasized that a web browser is not such an application.
Does this anyway tell us that Telegram API is ONLY accessible by Mobile-based applications (Clients) such as those on Android, iOS and etc?
You might find it easier to communicate with Telegram through our RESTful API: https://jaconda.im/api
来源:https://stackoverflow.com/questions/28913507/accessing-telegram-api-via-web-based-client