diff --git a/telethon/errors/rpc_base_errors.py b/telethon/errors/rpc_base_errors.py index d2db5439..3ec6cc7e 100644 --- a/telethon/errors/rpc_base_errors.py +++ b/telethon/errors/rpc_base_errors.py @@ -3,6 +3,9 @@ class RPCError(Exception): code = None message = None + def __reduce__(self): + return type(self), () + class InvalidDCError(RPCError): """