Code Monkey home page Code Monkey logo

telegram's People

Contributors

pushshift avatar simon987 avatar zsavvas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

telegram's Issues

add minimal examples

Thank you very much for this great project.

It seems to be a really well made way of collecting data that also supports efficient search.

I really would like to use it and I was thinking that a few minimal examples showing how to collect data, add a list of channels, query the database, etc. would be very helpful.

Also, is it possible to load the zenodo dataset (https://zenodo.org/record/3607497) into the PostgreSQL database?

Thanks,

Alex

Create a basic Elasticsearch mapping and start indexing messages from channels/groups

The structure of a Telegram message can get complex when there is media attached to the message. In the meantime, to start enabling searches, a basic Elasticsearch mapping should be created that stores the channel, author, creation time, message text and other basic fields.

The ES mapping will be improved over time, but for the time being, a basic ES mapping will suffice to enable basic searches.

LICENSE

There is currently no LICENSE file

Create a method that can compare stored messages in the DB and check if they have been edited

Telegram allows users to edit their messages. Determining if a message was edited from an original message is relatively easy since there is a field in the message object that signifies if a message was edited.

However, there needs to be logic in place to compare a message that has already been edited to detect additional future edits to that same message. Within the database, the original message will be stored along with all edited versions.

For example, if a message is an original message (unedited), the edited field in the message object can be examined to see if a message has been edited. If the message is then later edited again, further logic needs to be introduced to detect if the message was edited more than once.

All edits to a message will be stored in the database as they are detected during rescans, etc.

Add an API endpoint that enables users of the API to add channels

Adding an endpoint that allows users of the API to suggest new channels for ingest would be very beneficial and help crowdsource discovery of existing and new channels.

We will need some logic in place to avoid abuse of the endpoint, etc. Perhaps by limiting the number of suggested channels by IP address, etc.

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.