mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-18 19:16:43 +00: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):
|
class MsgWaitFailedError(BadRequestError):
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
super(Exception, self).__init__(
|
super(Exception, self).__init__(
|
||||||
@ -349,6 +357,7 @@ rpc_errors_400_all = {
|
|||||||
'MESSAGE_EMPTY': MessageEmptyError,
|
'MESSAGE_EMPTY': MessageEmptyError,
|
||||||
'MESSAGE_ID_INVALID': MessageIdInvalidError,
|
'MESSAGE_ID_INVALID': MessageIdInvalidError,
|
||||||
'MESSAGE_TOO_LONG': MessageTooLongError,
|
'MESSAGE_TOO_LONG': MessageTooLongError,
|
||||||
|
'MESSAGE_NOT_MODIFIED': MessageNotModifiedError,
|
||||||
'MSG_WAIT_FAILED': MsgWaitFailedError,
|
'MSG_WAIT_FAILED': MsgWaitFailedError,
|
||||||
'PASSWORD_HASH_INVALID': PasswordHashInvalidError,
|
'PASSWORD_HASH_INVALID': PasswordHashInvalidError,
|
||||||
'PEER_ID_INVALID': PeerIdInvalidError,
|
'PEER_ID_INVALID': PeerIdInvalidError,
|
||||||
|
Loading…
Reference in New Issue
Block a user