GithubHelp home page GithubHelp logo

teleindexing's Introduction

TeleIndexing

Returns the last n messages From a chosen Telegram Channel.

Input:

usage: teleIndexer.py [-h] -c CHANNEL -i XLASTMESSAGES

-c <channel> -i <XLastMessages>

options:
  -h, --help            show this help message and exit
  -c CHANNEL, --channel CHANNEL
                        A Channel Name, URL, or ID is required.
  -i XLASTMESSAGES, --XLastMessages XLASTMESSAGES
                        Last n Messages to fetch from the channel.                    

Examples:

teleIndexer.py -c 569691 -i 10
teleIndexer.py --channel https://t.me/programminginc --XLASTMESSAGES 25
teleIndexer.py -c programminginc -i 50

Docker:

build the docker:

sudo docker build . -t teleIndexer:1.0.0

examples running the docker:

sudo docker run -it teleIndexer:1.0.0 -c 569691 -i 10
sudo docker run -it teleIndexer:1.0.0 -c https://t.me/programminginc -i 25
sudo docker run -it teleIndexer:1.0.0 -c programminginc -i 50

Output:

JSON file: image

Commandline: image

the output filename is named: "telegram_messages.json".

First Run:

For the script to run correctly you need to add an API_ID & an API_HASH on lines 8 & 9 (You can get those values at "my.telegram.org/apps"):

image

At the first run, you will also need to log in to your telegram account:

image

teleindexing's People

Contributors

lell0 avatar

Stargazers

Hawraa Atat avatar

Watchers

 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.