A simple Telegram (telethon) client wrapper
Project description
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d7061177c3591c53534be37bcf0e6150093b9bdf471c44f9771ebf473550834
|
|
| MD5 |
7de0c884491dc65f04dd0f8684be3d83
|
|
| BLAKE2b-256 |
3f3453935113d162b5ec240f0993e55b36978fb59b76522d3ef83946e7972ae9
|
File details
Details for the file telethon_client_wrapper-0.9.9-py3-none-any.whl.
File metadata
- Download URL: telethon_client_wrapper-0.9.9-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afd3cfd5d84e61cdc911dd1334cdb19972baf082a095a4ece6e4a0faede510b7
|
|
| MD5 |
cc607e0748e1cbe6140032bf0426da39
|
|
| BLAKE2b-256 |
962a595095b42a272209cf5487df2c6bc90dc83f02cdb5d02707d23dafdcb548
|