Fix missing message content types (#1252)

* Fix missing message content types

* Added changelog

* Fix black

* Update CHANGES/1252.bugfix.rst

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>

* add tests

---------

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
This commit is contained in:
Forden 2023-08-13 18:05:04 +03:00 committed by GitHub
parent fac0a533b0
commit 4d12e073ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 0 deletions

View file

@ -492,6 +492,10 @@ 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