Skip to content

Rerowros/telethon_client_wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages