Giter Site home page Giter Site logo

drumskills / telegram-bot-getids Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wjclub/telegram-bot-getids

0.0 0.0 0.0 201 KB

Telegram Bot that prints out detailed informations about users, chats and media.

License: MIT License

JavaScript 97.99% Dockerfile 2.01%

telegram-bot-getids's Introduction

GetIDsBot

⚠️ Status of this project

The original developers of this bot mostly moved on and away from Telegram bot development. Please consider this code and bot unmaintained. It may still work, but we won't rush to fix things anymore.

Introduction

GetIDsBot is a chatbot for the Telegram Messaging Plattform which main purpose is to extract useful informations from messages that are normally hidden and to enhance them. This means...

  • converting file_sizes and durations to human readable formats.
  • interpolating account creation dates from the users chat_id.
  • displaying it all tree(1)'ish'.

Using this bot

Option A: Use the version we host at https://t.me/GetIDsBot

Option B: Host one yourself. You will need a bot token from the BotFather and a server with nodejs and npm installed to run it. Yes, bots are programs and they must run on some computer.

Account creation dates

Most people want to use this, so here is a bit of explanation for all of you: Telegram gives each chat (that is users, bots, groups and channels) a globally unique numerical id. These id numbers aren't given out sequentially, so two users signing up at the exact same time will probably have a difference of up to a few millions. Two possible reasons are:

  • Sharding: Telegram registrations won't all happen on the same server. To avoid giving out the same id twice, all registration servers reserve a range of ids from the central registry and periodically fetch new ones.
  • Obfuscation: You should not be able to guess the signup date from one's id.

This is still speculation, and we don't know for certain, but averaged out over a year or so, the IDs do still increase. There are some exceptions, but guessing is still possible.

We collected a bunch of ids for which we knew the rough creation dates, anonymized the dates and used some dark magic called "maths" to estimate a creation date.

Current state of development

Mostly abandoned

Development / Contribute

The original GetIDsBot was written in PHP. After I (Jonas) realized that PHP is horrible for anything other than easy deployment and basic templating, I got the urge to rewrite it in a better language. As you might have already seen, I failed. It is written in javascript. I hate javascript. But my Rust and Elixir skills are just mediocre at the time of writing, so here we go:

  • Fork this repo and clone it from your account, so you can crate Pull requests.
  • If you want to work on a feature, consider branching. I would consider feature-xy or fix-xy a decent naming sheme.
  • Run npm install in this repo.
  • Run the bloody thing with node index.js
  • Please use propper commit messages like adds italian translation or fixes rounding error. If you are not a git master like me, sublime merge might save your day.

Hall of shame

The following people sinned and wrote javascript for this project or did not stop the others from doing so:

License and Copyright

MIT for this project, some BSD and Apache License, Version 2.0 for it's dependencies. Copyright 2021 Jonas Zohren & other contributors.

telegram-bot-getids's People

Contributors

jfowl avatar dependabot-preview[bot] avatar dependabot[bot] avatar dependabot-support avatar amirhoseinsalimi avatar vrumger avatar vladislav805 avatar jassler avatar jaredallard avatar nicovarg99 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.