Logs Telegram events to your console, file(s) or both simultanously.
Project description
telegram-logger
A simple Python script using Telethon to log all (or some) messages a user or bot account can see on Telegram.
Requirements
- Python 3.6 or newer
- Python package dependencies:
poetry install
orpip install -r requirements.txt
- A Telegram user or bot account
Usage
Set your api_id
and api_hash
in config.toml
. You can get this from "API development tools" on https://my.telegram.org/. Note that this authenticates an app, not a user.
When you start the script for the first time, you will be prompted for credentials. Upon successful authentication, it will start logging all messages it can see to stdout.
You can set enabled_chats
and disabled_chats
in the config to a list of chat IDs to control which chats should be logged (the default is all).
You can set log_seperate_files
to false
if you want the all logging to be saved to one file, the default is one file per chatId.
When logging to files, you may want to turn logging to stdout off, by setting log_stdout
to false.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file telegram-logger-x-0.12a0.tar.gz
.
File metadata
- Download URL: telegram-logger-x-0.12a0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8ce0dae3f41277a356e7a05d2cabd7faa459fabab1f81d891fa4334ca85bfed |
|
MD5 | 695da4eda1934993d9106b3992ca8b57 |
|
BLAKE2b-256 | 24d06628c41b28e2d1d924300c567d216c2750665b68555d99bd36b3f4acedbc |
File details
Details for the file telegram_logger_x-0.12a0-py3-none-any.whl
.
File metadata
- Download URL: telegram_logger_x-0.12a0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17e5163475c76a32f252e99a36299cc954f859e4ae5b61dcc95db4cc2d0617c4 |
|
MD5 | 85b4455a67affd85ae3f1d91ddcbc730 |
|
BLAKE2b-256 | 913fbf2a7543833a552b31e6a37eac15523e696705067d24212621ac01b52d59 |