|
|
|
@ -53,6 +53,11 @@ class MImageContent(MessageContentBase):
|
|
|
|
file: Optional[EncryptedFile] = None
|
|
|
|
file: Optional[EncryptedFile] = None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
|
|
|
|
|
|
|
class MStickerContent(MImageContent):
|
|
|
|
|
|
|
|
msgtype = 'm.sticker'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
|
|
|
@dataclass
|
|
|
|
class MFileContent(MessageContentBase):
|
|
|
|
class MFileContent(MessageContentBase):
|
|
|
|
msgtype = "m.file"
|
|
|
|
msgtype = "m.file"
|
|
|
|
@ -193,6 +198,7 @@ content_dispatcher = {
|
|
|
|
"m.emote": MEmoteContent,
|
|
|
|
"m.emote": MEmoteContent,
|
|
|
|
"m.notice": MNoticeContent,
|
|
|
|
"m.notice": MNoticeContent,
|
|
|
|
"m.image": MImageContent,
|
|
|
|
"m.image": MImageContent,
|
|
|
|
|
|
|
|
"m.sticker": MStickerContent,
|
|
|
|
"m.file": MFileContent,
|
|
|
|
"m.file": MFileContent,
|
|
|
|
"m.location": MLocationContent,
|
|
|
|
"m.location": MLocationContent,
|
|
|
|
"m.video": MVideoContent,
|
|
|
|
"m.video": MVideoContent,
|
|
|
|
|