Skip to main content

A fun tool to play with Telegram chats

Project description

Telegram analysis ✨

Telegram analysis is a python package that helps you have fun and make sense of different chat data you have. Based on pyrogram, its mission is to help you have fun with Telegram and it's functions. Whether it is about playing with your group chat dialogs or analysing the group dynamic of your business, personal chats or even your saved messages.

Be creative and build on top of ready solutions! 🧠


Installation:

pip install telegram-anal

🛠 Setup:

This library uses Pyrogram for handling Telegram, so you will need to authenticate standardly by:

  1. Create an app and copy your api_id and api_hash from https://my.telegram.org/

Example:

import asyncio
from telenal.client import Client
from telenal.reactions import measure_top_reactions
from telenal.teleplotter import plot_bars_from_dict


async def main():
    client = Client("my_account", "your_api_hash", "your_api_hash")
    tops = await measure_top_reactions(
        client,
        chat_name="Family chat :)",
        search_emojis=["😁", "💪", "👍"],
    )
    plot_bars_from_dict(tops)  # <-- get a bar chart out of the box


if __name__ == "__main__":
    asyncio.run(main())

The library is newly born and needs creative and energetic support. Feel free to contribute!

Ideas for future functionality:

  1. Analyze your activity based on sent chatting to identify your chatting patterns
  2. Save messages deleted by someone that texted you and save the secret they wanted to hide
  3. Measure user profiles to identify persons' most popular tones (NLP may be needed)
  4. Predict when a user is prone to leave a community based on real cases (ML)

Remember to have fun! :)

This software is made purely for fun. Any illegal or amoral misuse of the software does not make the authors responsible for the consequences.

Yours, Vlad Bilyk

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

telegram-anal-0.1.0.tar.gz (204.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

telegram_anal-0.1.0-py3-none-any.whl (204.8 kB view details)

Uploaded Python 3

File details

Details for the file telegram-anal-0.1.0.tar.gz.

File metadata

  • Download URL: telegram-anal-0.1.0.tar.gz
  • Upload date:
  • Size: 204.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Windows/10

File hashes

Hashes for telegram-anal-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fac75a358b6046864956007e4df8533891f1393f99f9e8f4e55458e2ed707bea
MD5 47c6a41beea640921633a3bf1dbfe8de
BLAKE2b-256 19a8a35e6ee802fba04dd52a9ea8c0665b51fd0bd6dc7d018da9c20455e362de

See more details on using hashes here.

File details

Details for the file telegram_anal-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: telegram_anal-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 204.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Windows/10

File hashes

Hashes for telegram_anal-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4f924327efe9a4218d9160b5105b662336a31177790eff2e8cf86773558efdf
MD5 414dcdc4082bb0b7530926c3fef02645
BLAKE2b-256 c2ffc372ef30bd00f5bf123e8b4ea1d9a3cfebc75e13d9ee4e87cccc6b8320db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page