Name | t-export JSON |
Version |
0.1.2
JSON |
| download |
home_page | |
Summary | Telegram chats export tool. |
upload_time | 2023-09-26 16:28:26 |
maintainer | |
docs_url | None |
author | RuslanUC |
requires_python | >=3.9,<4.0 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
## Telegram export tool.
### Installation
```shell
$ pip install t-export
```
### Usage
```shell
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
```shell
$ 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
```shell
$ 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
```shell
$ t-export -c example -o example_export --size-limit 100 --from-date 01.01.2023
```
Raw data
{
"_id": null,
"home_page": "",
"name": "t-export",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "RuslanUC",
"author_email": "dev_ruslan_uc@protonmail.com",
"download_url": "https://files.pythonhosted.org/packages/f2/2c/d5f8eb92b54c0beb2a89d27760d7780f8484eeaaf45f1af3fe9d0f33ce66/t_export-0.1.2.tar.gz",
"platform": null,
"description": "## Telegram export tool.\n\n### Installation\n```shell\n$ pip install t-export\n```\n\n### Usage\n```shell\nUsage: python -m texport [OPTIONS]\n\nOptions:\n --api-id INTEGER Telegram api id. Saved in\n ~/.texport/config.json file.\n --api-hash TEXT Telegram api hash. Saved in\n ~/.texport/config.json file.\n -s, --session-name TEXT Pyrogram session name or path to existing file. \n Saved in ~/.texport/<session_name>.session file.\n -c, --chat-id TEXT Chat id or username or phone number. \"me\" or\n \"self\" to export saved messages.\n -o, --output TEXT Output directory.\n -l, --size-limit INTEGER Media size limit in megabytes.\n -f, --from-date TEXT Date from which messages will be saved.\n -t, --to-date TEXT Date to which messages will be saved.\n --photos / --no-photos Download photos or not.\n --videos / --no-videos Download videos or not.\n --voice / --no-voice Download voice messages or not.\n --video-notes / --no-video-notes\n Download video messages or not.\n --stickers / --no-stickers Download stickers or not.\n --gifs / --no-gifs Download gifs or not.\n --documents / --no-documents Download documents or not.\n --quiet BOOLEAN Do not print progress to console.\n```\nAt first run you will need to specify api id and api hash and log in into your telegram account.\nOr you can pass path of existing pyrogram session to \"--session\" argument (no need to logging in or specifying api id or api hash).\n\n### Examples\n\n#### Export all messages from private chat with user @example to directory example_export\n```shell\n$ t-export -c example -o example_export\n```\n\n#### Export all messages from private chat with user @example to directory example_export without videos and with size limit of 100 megabytes\n```shell\n$ t-export -c example -o example_export --no-videos --size-limit 100\n```\n\n#### Export all messages from start of 2023 from private chat with user @example to directory example_export\n```shell\n$ t-export -c example -o example_export --size-limit 100 --from-date 01.01.2023\n```",
"bugtrack_url": null,
"license": "MIT",
"summary": "Telegram chats export tool.",
"version": "0.1.2",
"project_urls": {
"Homepage": "https://github.com/RuslanUC/t-export",
"Repository": "https://github.com/RuslanUC/t-export"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "169b9a8da33c89c060fa985e02825814813e6873db5fc9f0d2b7113f5c8057fe",
"md5": "4ce941eadefdbc10827479ee8ebfe913",
"sha256": "7ac3a92f747ae6c74863c2091309f0ce91fd438b1bb9b27ea58727d7e9a09135"
},
"downloads": -1,
"filename": "t_export-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4ce941eadefdbc10827479ee8ebfe913",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<4.0",
"size": 48243,
"upload_time": "2023-09-26T16:28:24",
"upload_time_iso_8601": "2023-09-26T16:28:24.428710Z",
"url": "https://files.pythonhosted.org/packages/16/9b/9a8da33c89c060fa985e02825814813e6873db5fc9f0d2b7113f5c8057fe/t_export-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f22cd5f8eb92b54c0beb2a89d27760d7780f8484eeaaf45f1af3fe9d0f33ce66",
"md5": "88dd996afe0aec20091ab710befca7a1",
"sha256": "e9d795377ca714a691a1f5b345859993959763892ad62449d483d3d2ddeed211"
},
"downloads": -1,
"filename": "t_export-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "88dd996afe0aec20091ab710befca7a1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<4.0",
"size": 40268,
"upload_time": "2023-09-26T16:28:26",
"upload_time_iso_8601": "2023-09-26T16:28:26.568049Z",
"url": "https://files.pythonhosted.org/packages/f2/2c/d5f8eb92b54c0beb2a89d27760d7780f8484eeaaf45f1af3fe9d0f33ce66/t_export-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-26 16:28:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "RuslanUC",
"github_project": "t-export",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "t-export"
}