Skip to content
Snippets Groups Projects
Commit edd0d917 authored by Tulir Asokan's avatar Tulir Asokan :cat2:
Browse files

Allow unknown values for AttachmentType and add MessageLiveLocation

parent d889776d
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ from yarl import URL
from attr import dataclass
import attr
from mautrix.types import SerializableEnum, SerializableAttrs
from mautrix.types import SerializableEnum, ExtensibleEnum, SerializableAttrs
from ..common import ThreadFolder, MessageUnsendability
......@@ -177,13 +177,14 @@ class Dimensions(SerializableAttrs['Dimensions']):
y: int
class AttachmentType(SerializableEnum):
class AttachmentType(ExtensibleEnum):
IMAGE = "MessageImage"
ANIMATED_IMAGE = "MessageAnimatedImage"
FILE = "MessageFile"
AUDIO = "MessageAudio"
VIDEO = "MessageVideo"
LOCATION = "MessageLocation"
LIVE_LOCATION = "MessageLiveLocation"
EXTERNAL_URL = "ExternalUrl"
STORY = "Story"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment