(self, message)
| 117 | @handle_for_type('voice') |
| 118 | class VoiceMessage(WechatMessage): |
| 119 | def __init__(self, message): |
| 120 | try: |
| 121 | self.media_id = message.pop('MediaId') |
| 122 | self.format = message.pop('Format') |
| 123 | self.recognition = message.pop('Recognition', None) |
| 124 | except KeyError: |
| 125 | raise ParseError() |
| 126 | super(VoiceMessage, self).__init__(message) |
| 127 | |
| 128 | |
| 129 | class UnknownMessage(WechatMessage): |
nothing calls this directly
no test coverage detected