()
| 153 | } |
| 154 | |
| 155 | func (m *MediaContent) GetInputAudio() *MessageInputAudio { |
| 156 | if m.InputAudio != nil { |
| 157 | if _, ok := m.InputAudio.(*MessageInputAudio); ok { |
| 158 | return m.InputAudio.(*MessageInputAudio) |
| 159 | } |
| 160 | if itemMap, ok := m.InputAudio.(map[string]any); ok { |
| 161 | out := &MessageInputAudio{ |
| 162 | Data: common.Interface2String(itemMap["data"]), |
| 163 | Format: common.Interface2String(itemMap["format"]), |
| 164 | } |
| 165 | return out |
| 166 | } |
| 167 | } |
| 168 | return nil |
| 169 | } |
| 170 | |
| 171 | func (m *MediaContent) GetFile() *MessageFile { |
| 172 | if m.File != nil { |
no test coverage detected