TeleControl Engine (TCE) Python SDK
Project description
TCE Python SDK (tce-sdk)
The Python client library for the TeleControl Engine (TCE). This SDK provides a simple interface to connect and communicate with the TCE Master Hub, allowing you to build persistent plugins or one-off automation scripts.
Installation
pip install tce-sdk
Features
- Dual-Mode Communication: Supports both BotAPI and MTProto (User account) messaging.
- WebSocket & Socket Support: Connect effortlessly to local or cloud-based Master Hubs.
- Rich Messaging: Send text, images, and files with full caption support and Inline Keyboards.
- Auto-Routing: Easily send messages to other bots using
reply_to_bot=True.
Quick Example (Plugin)
from tce import BotPluginSDK
sdk = BotPluginSDK("MyPlugin", host="localhost", port=8080)
@sdk.add_command("/ping", "Test ping")
def handle_ping(args, from_id):
return "🏓 Pong!", None
sdk.start()
Quick Example (One-off Utility)
from tce import BotPluginSDK
sdk = BotPluginSDK("Pinger", host="localhost", port=8080)
if sdk.connect():
sdk.send_message(12345678, "🔔 Hello from utility script!")
sdk.close()
Links
- Main Project: telecontrol-engine-tce
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
tce_sdk-1.5.5.tar.gz
(4.1 kB
view details)
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 tce_sdk-1.5.5.tar.gz.
File metadata
- Download URL: tce_sdk-1.5.5.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c8abe330b950be9945a85ab25cc476de6fad3b2e41433d59ff37abdbb75b9d7
|
|
| MD5 |
d2fbd1f9dbdeca4e4f6b0981a167509d
|
|
| BLAKE2b-256 |
9a69b39411944594902f8a34116d6748a1f20025bb0eccd8bbc6f287e5d6f845
|
File details
Details for the file tce_sdk-1.5.5-py3-none-any.whl.
File metadata
- Download URL: tce_sdk-1.5.5-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14509370b14b75ad72e1e6d41d483ea4e423057a819e4b4e15aaa17601499be9
|
|
| MD5 |
8f5e035412aec88761ce2e5c886a9fa6
|
|
| BLAKE2b-256 |
69acd8e12c6ccc235b7adc85eb7c4961918691d1c08a75b4684221c046342b1c
|