diff --git a/telethon/errors/rpc_base_errors.py b/telethon/errors/rpc_base_errors.py index d2db5439..315e4f5d 100644 --- a/telethon/errors/rpc_base_errors.py +++ b/telethon/errors/rpc_base_errors.py @@ -2,6 +2,8 @@ class RPCError(Exception): """Base class for all Remote Procedure Call errors.""" code = None message = None + def __reduce__(self): + return type(self), () class InvalidDCError(RPCError):