Skip to content

Save message history from Telegram Messenger

Notifications You must be signed in to change notification settings

Foxxel/tg-logsaver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Logsaver

This Node.js application automates downloading of messages from Telegram Messenger.

Requirements

This application requires an ES6-friendly version of Node. It was developed on Node v6.

Usage

Obtaining App ID and App Hash

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.

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.

Saving Logs

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)

License

ISC

About

Save message history from Telegram Messenger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%