mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 05:04:33 +03:00
Add RPCError for MESSAGE_NOT_MODIFIED (#231)
This commit is contained in:
parent
49555ad018
commit
cd40f4a949
|
@ -167,6 +167,14 @@ class MessageTooLongError(BadRequestError):
|
|||
)
|
||||
|
||||
|
||||
class MessageNotModifiedError(BadRequestError):
|
||||
def __init__(self, **kwargs):
|
||||
super(Exception, self).__init__(
|
||||
self,
|
||||
'Content of the message was not modified.'
|
||||
)
|
||||
|
||||
|
||||
class MsgWaitFailedError(BadRequestError):
|
||||
def __init__(self, **kwargs):
|
||||
super(Exception, self).__init__(
|
||||
|
@ -349,6 +357,7 @@ rpc_errors_400_all = {
|
|||
'MESSAGE_EMPTY': MessageEmptyError,
|
||||
'MESSAGE_ID_INVALID': MessageIdInvalidError,
|
||||
'MESSAGE_TOO_LONG': MessageTooLongError,
|
||||
'MESSAGE_NOT_MODIFIED': MessageNotModifiedError,
|
||||
'MSG_WAIT_FAILED': MsgWaitFailedError,
|
||||
'PASSWORD_HASH_INVALID': PasswordHashInvalidError,
|
||||
'PEER_ID_INVALID': PeerIdInvalidError,
|
||||
|
|
Loading…
Reference in New Issue
Block a user