telethon-client-wrapper


Nametelethon-client-wrapper JSON
Version 0.9.9 PyPI version JSON
download
home_pagehttps://github.com/Rerowros/telethon_client_wrapper
SummaryA simple Telegram (telethon) client wrapper
upload_time2025-01-17 11:42:50
maintainerNone
docs_urlNone
authorRay
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # README.md

## Introduction

This library simplifies the setup of Telethon clients for Telegram bots by handling configuration loading and client creation in a centralized way. It aims to streamline the process of creating Telegram bots, allowing developers to focus on bot logic rather than boilerplate code.

## Installation
```bash
pip install telethon-client-wrapper
```
## Configuration

Create a `config.json` file with the following fields:

```json
{
  "device_model": "YourDeviceModel",
  "system_version": "YourSystemVersion",
  "app_version": "YourAppVersion",
  "lang_code": "en",
  "system_lang_code": "en-US",
  "api_id": "YOUR_API_ID",
  "api_hash": "YOUR_API_HASH"
}
```

## Usage

Import and use the `create_client` function:

```python
from telethon_client_wrapper import create_client

client = create_client('config.json', 'my_session')

```

## Contribution Guidelines

Contributions are welcome

## Support

For support or inquiries, please contact [@Rerowros](https://t.me/Rerowros) or open an issue on GitHub.

## Roadmap

- [ ] Enhance error handling and logging.

## Links

- [Telethon Documentation](https://docs.telethon.dev/)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Rerowros/telethon_client_wrapper",
    "name": "telethon-client-wrapper",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Ray",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/3f/34/53935113d162b5ec240f0993e55b36978fb59b76522d3ef83946e7972ae9/telethon_client_wrapper-0.9.9.tar.gz",
    "platform": null,
    "description": "# README.md\r\n\r\n## Introduction\r\n\r\nThis library simplifies the setup of Telethon clients for Telegram bots by handling configuration loading and client creation in a centralized way. It aims to streamline the process of creating Telegram bots, allowing developers to focus on bot logic rather than boilerplate code.\r\n\r\n## Installation\r\n```bash\r\npip install telethon-client-wrapper\r\n```\r\n## Configuration\r\n\r\nCreate a `config.json` file with the following fields:\r\n\r\n```json\r\n{\r\n  \"device_model\": \"YourDeviceModel\",\r\n  \"system_version\": \"YourSystemVersion\",\r\n  \"app_version\": \"YourAppVersion\",\r\n  \"lang_code\": \"en\",\r\n  \"system_lang_code\": \"en-US\",\r\n  \"api_id\": \"YOUR_API_ID\",\r\n  \"api_hash\": \"YOUR_API_HASH\"\r\n}\r\n```\r\n\r\n## Usage\r\n\r\nImport and use the `create_client` function:\r\n\r\n```python\r\nfrom telethon_client_wrapper import create_client\r\n\r\nclient = create_client('config.json', 'my_session')\r\n\r\n```\r\n\r\n## Contribution Guidelines\r\n\r\nContributions are welcome\r\n\r\n## Support\r\n\r\nFor support or inquiries, please contact [@Rerowros](https://t.me/Rerowros) or open an issue on GitHub.\r\n\r\n## Roadmap\r\n\r\n- [ ] Enhance error handling and logging.\r\n\r\n## Links\r\n\r\n- [Telethon Documentation](https://docs.telethon.dev/)\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A simple Telegram (telethon) client wrapper",
    "version": "0.9.9",
    "project_urls": {
        "Homepage": "https://github.com/Rerowros/telethon_client_wrapper"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "962a595095b42a272209cf5487df2c6bc90dc83f02cdb5d02707d23dafdcb548",
                "md5": "cc607e0748e1cbe6140032bf0426da39",
                "sha256": "afd3cfd5d84e61cdc911dd1334cdb19972baf082a095a4ece6e4a0faede510b7"
            },
            "downloads": -1,
            "filename": "telethon_client_wrapper-0.9.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cc607e0748e1cbe6140032bf0426da39",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 5108,
            "upload_time": "2025-01-17T11:42:48",
            "upload_time_iso_8601": "2025-01-17T11:42:48.977754Z",
            "url": "https://files.pythonhosted.org/packages/96/2a/595095b42a272209cf5487df2c6bc90dc83f02cdb5d02707d23dafdcb548/telethon_client_wrapper-0.9.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3f3453935113d162b5ec240f0993e55b36978fb59b76522d3ef83946e7972ae9",
                "md5": "7de0c884491dc65f04dd0f8684be3d83",
                "sha256": "6d7061177c3591c53534be37bcf0e6150093b9bdf471c44f9771ebf473550834"
            },
            "downloads": -1,
            "filename": "telethon_client_wrapper-0.9.9.tar.gz",
            "has_sig": false,
            "md5_digest": "7de0c884491dc65f04dd0f8684be3d83",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4105,
            "upload_time": "2025-01-17T11:42:50",
            "upload_time_iso_8601": "2025-01-17T11:42:50.075301Z",
            "url": "https://files.pythonhosted.org/packages/3f/34/53935113d162b5ec240f0993e55b36978fb59b76522d3ef83946e7972ae9/telethon_client_wrapper-0.9.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-17 11:42:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Rerowros",
    "github_project": "telethon_client_wrapper",
    "github_not_found": true,
    "lcname": "telethon-client-wrapper"
}
        
Ray
Elapsed time: 0.53580s