Giter Club home page Giter Club logo

telegram-channel-scraper's Introduction

telegram-channel-scraper in NodeJS

Telegram Channel Scraper using Telegram Mobile Protocol (MTProto) library forked from this repo (Telegram MTProto ES6)

About Telegram Channel Scraper

This nodejs program was forked from Telegram MTProto

You can use it to grab messages from any channel (by default or user chats) and send it as JSON to any server. Some potential uses:

  • Monitor telegram news channels and send to google sheets for further processing. (Google Apps Script server on Google Sheets is very simple to set up)

  • Grab signals from Forex / Crypto telegram channels and send to server for automated trading

Installation

Clone this repo. Then

$ cd telegram-channel-scraper
$ npm i

Fill in .env.example then rename to .env

The telegram_api_id and telegram_api_hash values can be obtained here: https://my.telegram.org/

Usage

Make sure your in a telegram channel or create your own one to test.

Then run the program

$ node index.js

It is currently set up to poll the telegram server every 60 seconds. I had trouble setting up updates from telegram so instead I set it up as setTimeout.

Send another message to your channel and watch it send to your server again.

Contribute

Would love for someone to implement the updates feature so the app doesnt need to constantly poll the server for new messages. Feel free to send a pull request.

License

Free for all to use

telegram-channel-scraper's People

Contributors

abdhass avatar menahishayan avatar karianpour avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.