New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tg-logsaver

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tg-logsaver

Save message history from Telegram Messenger

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Telegram Logsaver

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

Requirements

This application requires an ES6-friendly version of Node. It should run on Node v4 and higher.

Installation

npm install -g tg-logsaver

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. You will be prompted for these values during the next step.

Authorization

The application must be authorized to use your Telegram account. To do this, run tg-logsaver auth in the directory you wish to save logs. You will be prompted for your Telegram app ID and hash (if necessary), and your phone number, then sent a login code. Once the login code is entered and validated, the application will automatically save your Telegram app ID, app hash, and 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 tg-logsaver save in the directory you wish to save logs. Logs are saved in the logs directory.

When running for the first time, the process may take a while to complete, as the Telegram API limits the amount of messages that may be retrieved at one time. Subsequent runs won't bother downloading days that have already been downloaded.

Note: This application currently only support saving messages between users (i.e. not groups)

License

ISC

Keywords

FAQs

Package last updated on 23 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc