This Node.js application automates downloading of messages from Telegram Messenger.
This application requires an ES6-friendly version of Node. It was developed on Node v6.
The application must have an ID and hash to communicate with the Telegram API. These values may be obtained via the App Configuration page.
Once your ID and hash are created, set them in config/config.json
. You may also explicitly specify a data center IP address, though the app will automatically try to determine the appropriate data center to use at the time of authorization.
The application must then be authorized to use your Telegram account. To do this, run node ./ auth
in the project root directory. You will be prompted for your phone number and sent a login code. Once the login code is entered and validated, the application will automatically save your authorization key to the config file.
Note: The Telegram library this project relies on (telegram.link) does not currently support 2-step verification. If you have 2-step verification enabled, try disabling it prior to authorizing. It can be re-enabled after authorization is complete.
To save all logs, simply run node ./ save
in the project root directory. Logs are saved in the logs
directory. It may take a while to complete, as the Telegram API limits the amount of messages that may be retrieved at one time.
Logs are saved in the logs
directory of the application.
Note: This application currently only support saving messages between users (i.e. not groups)
ISC