質問編集履歴

1

ソースコードのアップロードをしました。

2018/09/27 12:49

投稿

qwerty114514
qwerty114514

スコア13

test CHANGED
File without changes
test CHANGED
@@ -26,7 +26,17 @@
26
26
 
27
27
  ```Python
28
28
 
29
+ @handler.add(MessageEvent, message=(ImageMessage, AudioMessage))
30
+
31
+ def handle_image_audio_message(event):
32
+
33
+ content = line_bot_api.get_message_content(event.message.id)
34
+
29
- ![ソースコード](71fa84d7e6e036f1c8ccb0c4fe3c6918.png)
35
+ with open('file', 'w') as f:
36
+
37
+ for c in content.iter_content():
38
+
39
+ f.write(c)
30
40
 
31
41
  ```
32
42