Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions chatom/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from .attachment import *
from .backend import *
from .channel import *
from .format import *
from .mention import *
from .message import *
from .presence import *
from .user import *

__version__ = "0.1.0"
24 changes: 24 additions & 0 deletions chatom/backend.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from typing import Literal, Union

DISCORD = "discord"
MATTERMOST = "mattermost"
MESSENGER = "messenger"
SLACK = "slack"
TEAMS = "teams"
TELEGRAM = "telegram"
WHATSAPP = "whatsapp"
ZULIP = "zulip"

Backend = Union[
Literal[DISCORD],
Literal[MATTERMOST],
Literal[MESSENGER],
Literal[SLACK],
Literal[TEAMS],
Literal[TELEGRAM],
Literal[WHATSAPP],
Literal[ZULIP],
str,
]

__all__ = ("Backend", "DISCORD", "MATTERMOST", "MESSENGER", "SLACK", "TEAMS", "TELEGRAM", "WHATSAPP", "ZULIP")
3 changes: 3 additions & 0 deletions chatom/format/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .message import *
from .table import *
from .text import *
Empty file added chatom/format/message.py
Empty file.
Empty file added chatom/format/table.py
Empty file.
Empty file added chatom/format/text.py
Empty file.