Skip to content

Commit cbc0d3f

Browse files
committed
Update README.md
1 parent 9a35f8f commit cbc0d3f

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ https://devdocs.line.me/en/#reply-message
8484

8585
```python
8686
line_bot_api.reply_message(
87-
reply_token, TextSendMessage(text='Hello World!'))
87+
reply_token, TextSendMessage(text='Hello World!')
88+
)
8889
```
8990

9091
#### push_message(self, to, messages, timeout=None)
@@ -95,8 +96,8 @@ https://devdocs.line.me/en/#push-message
9596

9697
```python
9798
line_bot_api.push_message(
98-
to, TextSendMessage(text='Hello World!'))
99-
99+
to, TextSendMessage(text='Hello World!')
100+
)
100101
```
101102

102103
#### get_profile(self, user_id, timeout=None)
@@ -166,7 +167,7 @@ except LineBotApiError as e:
166167

167168
### Send message object
168169

169-
How to build for Send message object
170+
How to create Send message object
170171

171172
(See also https://devdocs.line.me/en/#send-message-object)
172173

@@ -369,6 +370,9 @@ If signature does NOT match, raise InvalidSignatureError.
369370

370371
```python
371372
events = parser.parse(body, signature)
373+
374+
for event in events:
375+
# Do something
372376
```
373377

374378
### WebhookHandler
@@ -516,7 +520,7 @@ https://devdocs.line.me/en/#webhooks
516520

517521
#### [simple-server-echo](https://github.com/line/line-bot-sdk-python/tree/master/examples/simple-server-echo)
518522

519-
Sample echo-bot using [wsgiref.simple_server](http://docs.python.jp/2/library/wsgiref.html)
523+
Sample echo-bot using [wsgiref.simple_server](https://docs.python.org/3/library/wsgiref.html)
520524

521525
#### [flask-echo](https://github.com/line/line-bot-sdk-python/tree/master/examples/flask-echo)
522526

examples/simple-server-echo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Simple Server Echo
22

3-
Sample echo-bot using [wsgiref.simple_server](http://docs.python.jp/2/library/wsgiref.html)
3+
Sample echo-bot using [wsgiref.simple_server](https://docs.python.org/3/library/wsgiref.html)
44

55
## Getting Start
66

0 commit comments

Comments
 (0)