mirror of
https://gitlab.com/octospacc/WinDog.git
synced 2025-06-05 22:09:20 +02:00
More API refactoring, add HTML text for Telegram, start work on /config
This commit is contained in:
18
LibWinDog/Types.py
Normal file
18
LibWinDog/Types.py
Normal 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
|
||||
|
Reference in New Issue
Block a user