More API refactoring, add HTML text for Telegram, start work on /config

This commit is contained in:
2024-06-26 02:02:55 +02:00
parent 8f1b80ab14
commit 2c73846554
10 changed files with 104 additions and 106 deletions

18
LibWinDog/Types.py Normal file
View File

@ -0,0 +1,18 @@
from types import SimpleNamespace
class SafeNamespace(SimpleNamespace):
def __getattribute__(self, value):
try:
return super().__getattribute__(value)
except AttributeError:
return None
class EventContext(SafeNamespace):
pass
class InputMessageData(SafeNamespace):
pass
class OutputMessageData(SafeNamespace):
pass