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.
pip install telethon-client-wrapperCreate 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"
}Import and use the create_client function:
from telethon_client_wrapper import create_client
client = create_client('config.json', 'my_session')Contributions are welcome
For support or inquiries, please contact @Rerowros or open an issue on GitHub.
- Enhance error handling and logging.