Remove Conversation API

This commit is contained in:
Lonami Exo
2021-09-11 14:16:25 +02:00
parent 2a933ac3bd
commit f86339ab17
12 changed files with 57 additions and 753 deletions

View File

@@ -7,7 +7,7 @@ import re
from .common import (
ReadCancelledError, TypeNotFoundError, InvalidChecksumError,
InvalidBufferError, SecurityError, CdnFileTamperedError,
AlreadyInConversationError, BadMessageError, MultiError
BadMessageError, MultiError
)
# This imports the base errors too, as they're imported there

View File

@@ -79,17 +79,6 @@ class CdnFileTamperedError(SecurityError):
)
class AlreadyInConversationError(Exception):
"""
Occurs when another exclusive conversation is opened in the same chat.
"""
def __init__(self):
super().__init__(
'Cannot open exclusive conversation in a '
'chat that already has one open conversation'
)
class BadMessageError(Exception):
"""Occurs when handling a bad_message_notification."""
ErrorMessages = {