mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
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:
parent
fac0a533b0
commit
4d12e073ee
3 changed files with 25 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue