oc_connect
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1"""Telegram messenger bundle and its explicit registration side effect.
2
3Dependencies
4------------
5- oc_connect.connectors.telegram.connector (TelegramConnector - registered as the telegram connector)
6- oc_connect.connectors.telegram.destinations (DestinationStore, TelegramDestination - re-exported)
7- oc_connect.connectors.telegram.setup_flow (TelegramSetup, SetupCancelled, TelegramSetupError - re-exported)
8- oc_connect.connectors.telegram.transport (TelegramTransport, TelegramTransportError - re-exported)
9- oc_connect.registry (registry - the shared connector registry this bundle registers into)
10"""
11from __future__ import annotations
12
13from ...registry import registry
14from .connector import TelegramConnector
15from .destinations import DestinationStore, TelegramDestination
16from .setup_flow import SetupCancelled, TelegramSetup, TelegramSetupError
17from .transport import TelegramTransport, TelegramTransportError
18
19registry.register("telegram", TelegramConnector)
20
21__all__ = [
22 "DestinationStore",
23 "SetupCancelled",
24 "TelegramConnector",
25 "TelegramDestination",
26 "TelegramSetup",
27 "TelegramSetupError",
28 "TelegramTransport",
29 "TelegramTransportError",
30]