Skip to main content

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

pip install telethon-client-wrapper

Configuration

Create a config.json file with the following fields:

{
  "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:

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 or open an issue on GitHub.

Roadmap

  • Enhance error handling and logging.

Links

Download files

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

Source Distribution

telethon_client_wrapper-0.9.9.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

telethon_client_wrapper-0.9.9-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file telethon_client_wrapper-0.9.9.tar.gz.

File metadata

  • Download URL: telethon_client_wrapper-0.9.9.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for telethon_client_wrapper-0.9.9.tar.gz
Algorithm Hash digest
SHA256 6d7061177c3591c53534be37bcf0e6150093b9bdf471c44f9771ebf473550834
MD5 7de0c884491dc65f04dd0f8684be3d83
BLAKE2b-256 3f3453935113d162b5ec240f0993e55b36978fb59b76522d3ef83946e7972ae9

See more details on using hashes here.

File details

Details for the file telethon_client_wrapper-0.9.9-py3-none-any.whl.

File metadata

File hashes

Hashes for telethon_client_wrapper-0.9.9-py3-none-any.whl
Algorithm Hash digest
SHA256 afd3cfd5d84e61cdc911dd1334cdb19972baf082a095a4ece6e4a0faede510b7
MD5 cc607e0748e1cbe6140032bf0426da39
BLAKE2b-256 962a595095b42a272209cf5487df2c6bc90dc83f02cdb5d02707d23dafdcb548

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9.9 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page