@@ -102,8 +102,8 @@ Create a new LineBotApi instance.
102102
103103 You can override the ``timeout `` value for each method.
104104
105- reply\_ message(self, reply\_ token, messages, timeout=None)
106- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
105+ reply\_ message(self, reply\_ token, messages, notification_disabled=False, timeout=None)
106+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
107107
108108Respond to events from users, groups, and rooms. You can get a
109109reply\_ token from a webhook event object.
@@ -114,8 +114,8 @@ https://developers.line.biz/en/reference/messaging-api/#send-reply-message
114114
115115 line_bot_api.reply_message(reply_token, TextSendMessage(text = ' Hello World!' ))
116116
117- push\_ message(self, to, messages, timeout=None)
118- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117+ push\_ message(self, to, messages, notification_disabled=False, timeout=None)
118+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119119
120120Send messages to users, groups, and rooms at any time.
121121
@@ -125,17 +125,28 @@ https://developers.line.biz/en/reference/messaging-api/#send-push-message
125125
126126 line_bot_api.push_message(to, TextSendMessage(text = ' Hello World!' ))
127127
128- multicast(self, to, messages, timeout=None)
129- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128+ multicast(self, to, messages, notification_disabled=False, timeout=None)
129+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
130130
131- Send messages to multiple users at any time.
131+ Send push messages to multiple users at any time. Messages cannot be sent to groups or rooms .
132132
133133https://developers.line.biz/en/reference/messaging-api/#send-multicast-message
134134
135135.. code :: python
136136
137137 line_bot_api.multicast([' to1' , ' to2' ], TextSendMessage(text = ' Hello World!' ))
138138
139+ broadcast(self, messages, notification_disabled=False, timeout=None)
140+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
141+
142+ Send push messages to multiple users at any time.
143+
144+ https://developers.line.biz/en/reference/messaging-api/#send-broadcast-message
145+
146+ .. code :: python
147+
148+ line_bot_api.broadcast(TextSendMessage(text = ' Hello World!' ))
149+
139150 get\_ profile(self, user\_ id, timeout=None)
140151^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
141152
@@ -461,7 +472,7 @@ https://developers.line.biz/en/reference/messaging-api/#revoke-channel-access-to
461472 line_bot_api.revoke_channel_token(< access_token> )
462473
463474 get\_ insight\_ message\_ delivery(self, date, timeout=None)
464- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
475+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
465476
466477Get the number of messages sent on a specified day.
467478
@@ -473,7 +484,7 @@ https://developers.line.biz/en/reference/messaging-api/#get-number-of-delivery-m
473484 print (insight.api_broadcast)
474485
475486 get\_ insight\_ followers(self, date, timeout=None)
476- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
487+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
477488
478489Get the number of users who have added the bot on or before a specified date.
479490
@@ -485,7 +496,7 @@ https://developers.line.biz/en/reference/messaging-api/#get-number-of-followers
485496 print (insight.followers)
486497
487498 get\_ insight\_ demographic(self, timeout=None)
488- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
499+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
489500
490501Retrieve the demographic attributes for a bot's friends.
491502
@@ -505,11 +516,12 @@ https://developers.line.biz/en/reference/messaging-api/#get-message-event
505516
506517.. code :: python
507518
508- insight = line_bot_api.get_insight_message_event()
519+ broadcast_response = line_bot_api.broadcast(TextSendMessage(text = ' Hello World!' ))
520+ insight = line_bot_api.get_insight_message_event(broadcast_response.request_id)
509521 print (insight.overview)
510522
511523 ※ Error handling
512- ^^^^^^^^^^^^^^^^
524+ ^^^^^^^^^^^^^^^^^
513525
514526If the LINE API server returns an error, LineBotApi raises LineBotApiError.
515527
0 commit comments