Fix missing message content types

This commit is contained in:
Forden 2023-08-08 17:11:47 +03:00 committed by GitHub
parent 68c0516f69
commit e1e30a37fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -492,7 +492,11 @@ class Message(TelegramObject):
return ContentType.VIDEO_CHAT_PARTICIPANTS_INVITED
if self.web_app_data:
return ContentType.WEB_APP_DATA
if self.user_shared:
return ContentType.USER_SHARED
if self.chat_shared:
return ContentType.CHAT_SHARED
return ContentType.UNKNOWN
def _unparse_entities(self, text_decoration: TextDecoration) -> str: