(self)
| 83 | assert isinstance(self.channel, SlaveChannel), f"Slave channel {self.channel!r} is not valid." |
| 84 | |
| 85 | def __getstate__(self): |
| 86 | state = super(ChatUpdates, self).__getstate__() |
| 87 | if state['channel'] is not None: |
| 88 | state['channel'] = state['channel'].channel_id |
| 89 | return state |
| 90 | |
| 91 | def __setstate__(self, state: Dict[str, Any]): |
| 92 | super(ChatUpdates, self).__setstate__(state) |
nothing calls this directly
no test coverage detected