MCPcopy Create free account
hub / github.com/ehForwarderBot/ehForwarderBot / __getstate__

Method __getstate__

ehforwarderbot/status.py:212–216  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

210 f"Message does not contain the minimum information required: {self.message!r}"
211
212 def __getstate__(self):
213 state = super(MessageRemoval, self).__getstate__()
214 if state['source_channel'] is not None:
215 state['source_channel'] = state['source_channel'].channel_id
216 return state
217
218 def __setstate__(self, state: Dict[str, Any]):
219 super(MessageRemoval, self).__setstate__(state)

Callers

nothing calls this directly

Calls 1

__getstate__Method · 0.45

Tested by

no test coverage detected