Revert "api!: remove APIs for video chat invitations"

This reverts commit 23bfa4fc43.
This commit is contained in:
Hocuri
2025-10-07 12:45:20 +02:00
committed by GitHub
parent 209a8026fb
commit 71ac2d168e
25 changed files with 644 additions and 18 deletions

View File

@@ -435,6 +435,10 @@ class Message:
"""return True if it's a video message."""
return self._view_type == const.DC_MSG_VIDEO
def is_videochat_invitation(self):
"""return True if it's a videochat invitation message."""
return self._view_type == const.DC_MSG_VIDEOCHAT_INVITATION
def is_webxdc(self):
"""return True if it's a Webxdc message."""
return self._view_type == const.DC_MSG_WEBXDC
@@ -475,6 +479,7 @@ _view_type_mapping = {
"video": const.DC_MSG_VIDEO,
"file": const.DC_MSG_FILE,
"sticker": const.DC_MSG_STICKER,
"videochat": const.DC_MSG_VIDEOCHAT_INVITATION,
"webxdc": const.DC_MSG_WEBXDC,
}