Deprecation Notice
不要将它用于新项目。
telegram-mtproto 更先进并且有更好的 API。
同时检查 < a href="https://github.com/goodmind/treact">处理。 我尝试用 React.js 编写 Telegram 客户端
@goodmind/telegram.link
ALPHA SOFTWARE
在 Telegram 中联系我 @goodmind
telegram.link is a Telegram API library for
telegram.link 是一个非官方的 javascript 移植Telegram 应用程序编程接口 的。
telegram.link 库可以一次编写一个客户端应用(整个或仅通信部分)
在移动和桌面浏览器以及Node.js 服务器 上运行并连接到Telegram 数据中心
通过标准协议和API。
Telegram.link in action!
要从 telegram.link 库开始,您可以安装和研究 Termgram 应用程序。
Termgram 是连接 Telegram 的终端客户端,并使用 telegram.link 当前可用的所有功能。
源代码非常简单,您可以从中汲取灵感来构建自己的应用程序!
一旦新功能在 telegram.link 中可用,它就会被 Termgram 利用。
Project Status
请参阅 wiki 上的项目状态页面以获取最后的注释。
Documentation
api文档生成在doc/文件夹下。
请参阅 wiki 上的文档页面。
Project Architecture
整个库分为 < strong>三个项目:
Other direct dependencies
get-flow:又一个 Node.js 流控制实用程序,功能强大且易于使用
get-log:一个 Node.js 日志实用程序,易于使用并可用于生产环境。
requirish:一个避免 ../../../ 相对路径问题的工具,包括一个
browserify-transform 重写浏览器的 require() 。
Installation
要获得完整的包:
$ git clone --branch=master git://github.com/goodmind/telegram.link.git
$ cd telegram.link
$ npm install
要将库安装为您的应用程序的依赖项(没有测试、没有文档、没有开发文件……只有纯代码!):
$ cd YourApp
$ npm install --save @goodmind/telegram.link
Unit Testing
您可以运行单元测试,在项目根文件夹中执行以下命令:
$ npm test
About Telegram..
Telegram 是一个跨平台的信使,其客户端开源。
Telegram 用户可以交换加密和自毁消息、照片、视频和文档(支持所有文件类型)。
Telegram 正式可用于 Android 和 iOS(包括平板电脑和没有 Wi-Fi 的设备)。
适用于 Windows Phone 的非官方客户端,以及 Web 版本、OS X 版本、Linux 版本和 Windows 桌面客户端
可从使用 Telegram API 的独立开发者处获得
(来自维基百科)。
About Node.JS..
Node.js 是用于服务器端和网络应用程序的跨平台运行时环境。
Node.js 应用程序是用 JavaScript 编写的,可以在 OS X、Microsoft Windows 和
没有变化的 Linux(来自维基百科)。
About the telegram.link logo ..
由 Diego Pasquali 制作的徽标
License
该项目根据 MIT 许可证发布
Deprecation Notice
Don’t use this for new projects.
telegram-mtproto is much more advanced and has a better API.
Also check treact. My attempt to write Telegram client in React.js
@goodmind/telegram.link
ALPHA SOFTWARE
Contact me in Telegram @goodmind
telegram.link is a Telegram API library for
Hybrid Mobile Apps (phone and tablet)
Desktop Web Apps (standard HTML5 browsers)
Server-side Apps (i.e. a Command-Line Interface)
Desktop Apps (i.e. as third party module using the NW.js runtime)
telegram.link is an unofficial porting in javascript of the Telegram Application Programming Interface.
telegram.link library enables to write once a client-application (whole or only the communication part) that
runs both on mobile and desktop browsers and also on a Node.js server and connect to the Telegram data-centers
via standard protocol and API.
Telegram.link in action!
To start with the telegram.link library, you can install and study the Termgram application.
Termgram is a terminal client to connect with Telegram and uses all the features currently available in telegram.link.
The source code is quite straightforward and you'll be able to take inspiration to build your own application!
As soon as a new feature will be available in telegram.link it will be exploited by Termgram.
Project Status
See the project status page on the wiki for the last notes.
Documentation
The api documentation is generated under the doc/ folder.
See the documentation page on the wiki.
Project Architecture
The whole library is split in three projects:
@goodmind/telegram.link (this library): is the main project and provides the highest-level interface to communicate with the Telegram data-center.
When you write your 'telegram-like-app' you should deal only with this module.
@goodmind/telegram-mt-node (dependency): implements the Telegram Mobile Protocol (MTProto),
the protocol level to establish a secure communication with the Telegram cloud.
@goodmind/telegram-tl-node (dependency): implements the core TypeLanguage types and
a TypeBuilder class that writes Type classes and functions in pure javascript parsing TypeLanguage schemas.
TypeLanguage types represent the building blocks of the Telegram protocol.
Other direct dependencies
get-flow: just yet another Node.js flow control utility, powerful and easy to use
get-log: a Node.js logging utility, easy to use and ready for production environment.
requirish: a tool for avoiding the ../../../ relative paths problem, includes a
browserify-transform to rewrites the require() for browser.
Installation
To get the complete package:
$ git clone --branch=master git://github.com/goodmind/telegram.link.git
$ cd telegram.link
$ npm install
To install the library as dependency for your app (no tests, no docs, no dev files.. only pure code!):
$ cd YourApp
$ npm install --save @goodmind/telegram.link
Unit Testing
You can run unit-test executing the following command in the project-root folder:
$ npm test
About Telegram..
Telegram is a cross-platform messenger whose clients are open source.
Telegram users can exchange encrypted and self-destructing messages, photos, videos and documents (all file-types supported).
Telegram is officially available for Android and iOS (including tablets and devices without Wi-Fi).
Unofficial clients for Windows Phone, as well as a web version, OS X version, Linux version and a Windows desktop client
are available from independent developers using the Telegram API
(from Wikipedia).
About Node.JS..
Node.js is a cross-platform runtime environment for server-side and networking applications.
Node.js applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft Windows and
Linux with no changes (from Wikipedia).
About the telegram.link logo ..
Logo crafted by Diego Pasquali
License
The project is released under the MIT license