Telegram chats export tool.
Project description
Telegram export tool.
Installation
$ pip install t-export
Usage
Usage: python -m texport [OPTIONS]
Options:
--api-id INTEGER Telegram api id. Saved in
~/.texport/config.json file.
--api-hash TEXT Telegram api hash. Saved in
~/.texport/config.json file.
-s, --session-name TEXT Pyrogram session name or path to existing file.
Saved in ~/.texport/<session_name>.session file.
-c, --chat-id TEXT Chat id or username or phone number. "me" or
"self" to export saved messages.
-o, --output TEXT Output directory.
-l, --size-limit INTEGER Media size limit in megabytes.
-f, --from-date TEXT Date from which messages will be saved.
-t, --to-date TEXT Date to which messages will be saved.
--photos / --no-photos Download photos or not.
--videos / --no-videos Download videos or not.
--voice / --no-voice Download voice messages or not.
--video-notes / --no-video-notes
Download video messages or not.
--stickers / --no-stickers Download stickers or not.
--gifs / --no-gifs Download gifs or not.
--documents / --no-documents Download documents or not.
--quiet BOOLEAN Do not print progress to console.
At first run you will need to specify api id and api hash and log in into your telegram account. Or you can pass path of existing pyrogram session to "--session" argument (no need to logging in or specifying api id or api hash).
Examples
Export all messages from private chat with user @example to directory example_export
$ t-export -c example -o example_export
Export all messages from private chat with user @example to directory example_export without videos and with size limit of 100 megabytes
$ t-export -c example -o example_export --no-videos --size-limit 100
Export all messages from start of 2023 from private chat with user @example to directory example_export
$ t-export -c example -o example_export --size-limit 100 --from-date 01.01.2023
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
t_export-0.1.2.tar.gz
(40.3 kB
view details)
Built Distribution
t_export-0.1.2-py3-none-any.whl
(48.2 kB
view details)
File details
Details for the file t_export-0.1.2.tar.gz
.
File metadata
- Download URL: t_export-0.1.2.tar.gz
- Upload date:
- Size: 40.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/6.3.8-200.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9d795377ca714a691a1f5b345859993959763892ad62449d483d3d2ddeed211 |
|
MD5 | 88dd996afe0aec20091ab710befca7a1 |
|
BLAKE2b-256 | f22cd5f8eb92b54c0beb2a89d27760d7780f8484eeaaf45f1af3fe9d0f33ce66 |
File details
Details for the file t_export-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: t_export-0.1.2-py3-none-any.whl
- Upload date:
- Size: 48.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/6.3.8-200.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ac3a92f747ae6c74863c2091309f0ce91fd438b1bb9b27ea58727d7e9a09135 |
|
MD5 | 4ce941eadefdbc10827479ee8ebfe913 |
|
BLAKE2b-256 | 169b9a8da33c89c060fa985e02825814813e6873db5fc9f0d2b7113f5c8057fe |