@@ -108,7 +108,7 @@ reply\_message(self, reply\_token, messages, timeout=None)
108
108
Respond to events from users, groups, and rooms. You can get a
109
109
reply\_ token from a webhook event object.
110
110
111
- https://developers.line.me /en/docs /messaging-api/reference /#send-reply-message
111
+ https://developers.line.biz /en/reference /messaging-api/#send-reply-message
112
112
113
113
.. code :: python
114
114
@@ -119,7 +119,7 @@ push\_message(self, to, messages, timeout=None)
119
119
120
120
Send messages to users, groups, and rooms at any time.
121
121
122
- https://developers.line.me /en/docs /messaging-api/reference /#send-push-message
122
+ https://developers.line.biz /en/reference /messaging-api/#send-push-message
123
123
124
124
.. code :: python
125
125
@@ -130,7 +130,7 @@ multicast(self, to, messages, timeout=None)
130
130
131
131
Send messages to multiple users at any time.
132
132
133
- https://developers.line.me /en/docs /messaging-api/reference/ #send-multicast-messages
133
+ https://developers.line.biz /en/reference /messaging-api/#send-multicast-message
134
134
135
135
.. code :: python
136
136
@@ -141,7 +141,7 @@ get\_profile(self, user\_id, timeout=None)
141
141
142
142
Get user profile information.
143
143
144
- https://developers.line.me /en/docs /messaging-api/reference /#get-profile
144
+ https://developers.line.biz /en/reference /messaging-api/#get-profile
145
145
146
146
.. code :: python
147
147
@@ -159,7 +159,7 @@ Gets the user profile of a member of a group that the bot is in. This can be
159
159
the user ID of a user who has not added the bot as a friend or has blocked
160
160
the bot.
161
161
162
- https://developers.line.me /en/docs /messaging-api/reference /#get-group-member-profile
162
+ https://developers.line.biz /en/reference /messaging-api/#get-group-member-profile
163
163
164
164
.. code :: python
165
165
@@ -175,7 +175,7 @@ get\_room\_member\_profile(self, room\_id, user\_id, timeout=None)
175
175
Gets the user profile of a member of a room that the bot is in. This can be the
176
176
user ID of a user who has not added the bot as a friend or has blocked the bot.
177
177
178
- https://developers.line.me /en/docs /messaging-api/reference /#get-room-member-profile
178
+ https://developers.line.biz /en/reference /messaging-api/#get-room-member-profile
179
179
180
180
.. code :: python
181
181
@@ -191,7 +191,7 @@ get\_group\_member\_ids(self, group\_id, start=None, timeout=None)
191
191
Gets the user IDs of the members of a group that the bot is in.
192
192
This includes the user IDs of users who have not added the bot as a friend or has blocked the bot.
193
193
194
- https://developers.line.me /en/docs /messaging-api/reference /#get-group-member-user-ids
194
+ https://developers.line.biz /en/reference /messaging-api/#get-group-member-user-ids
195
195
196
196
.. code :: python
197
197
@@ -206,7 +206,7 @@ get\_room\_member\_ids(self, room\_id, start=None, timeout=None)
206
206
Gets the user IDs of the members of a room that the bot is in.
207
207
This includes the user IDs of users who have not added the bot as a friend or has blocked the bot.
208
208
209
- https://developers.line.me /en/docs /messaging-api/reference /#get-room-member-user-ids
209
+ https://developers.line.biz /en/reference /messaging-api/#get-room-member-user-ids
210
210
211
211
.. code :: python
212
212
@@ -220,7 +220,7 @@ get\_message\_content(self, message\_id, timeout=None)
220
220
221
221
Retrieve image, video, and audio data sent by users.
222
222
223
- https://developers.line.me /en/docs /messaging-api/reference /#get-content
223
+ https://developers.line.biz /en/reference /messaging-api/#get-content
224
224
225
225
.. code :: python
226
226
@@ -235,7 +235,7 @@ leave\_group(self, group\_id, timeout=None)
235
235
236
236
Leave a group.
237
237
238
- https://developers.line.me /en/docs /messaging-api/reference /#leave-group
238
+ https://developers.line.biz /en/reference /messaging-api/#leave-group
239
239
240
240
.. code :: python
241
241
@@ -246,7 +246,7 @@ leave\_room(self, room\_id, timeout=None)
246
246
247
247
Leave a room.
248
248
249
- https://developers.line.me /en/docs /messaging-api/reference /#leave-room
249
+ https://developers.line.biz /en/reference /messaging-api/#leave-room
250
250
251
251
.. code :: python
252
252
@@ -257,7 +257,7 @@ get\_rich\_menu(self, rich\_menu\_id, timeout=None)
257
257
258
258
Gets a rich menu via a rich menu ID.
259
259
260
- https://developers.line.me /en/docs /messaging-api/reference /#get-rich-menu
260
+ https://developers.line.biz /en/reference /messaging-api/#get-rich-menu
261
261
262
262
.. code :: python
263
263
@@ -270,7 +270,7 @@ create\_rich\_menu(self, rich\_menu, timeout=None)
270
270
Creates a rich menu.
271
271
You must upload a rich menu image and link the rich menu to a user for the rich menu to be displayed. You can create up to 10 rich menus for one bot.
272
272
273
- https://developers.line.me /en/docs /messaging-api/reference /#create-rich-menu
273
+ https://developers.line.biz /en/reference /messaging-api/#create-rich-menu
274
274
275
275
.. code :: python
276
276
@@ -291,7 +291,7 @@ delete\_rich\_menu(self, rich\_menu\_id, timeout=None)
291
291
292
292
Deletes a rich menu.
293
293
294
- https://developers.line.me /en/docs /messaging-api/reference /#delete-rich-menu
294
+ https://developers.line.biz /en/reference /messaging-api/#delete-rich-menu
295
295
296
296
.. code :: python
297
297
@@ -302,7 +302,7 @@ get\_rich\_menu\_id\_of\_user(self, user\_id, timeout=None)
302
302
303
303
Gets the ID of the rich menu linked to a user.
304
304
305
- https://developers.line.me /en/docs /messaging-api/reference /#get-rich-menu-id-of-user
305
+ https://developers.line.biz /en/reference /messaging-api/#get-rich-menu-id-of-user
306
306
307
307
.. code :: python
308
308
@@ -314,7 +314,7 @@ link\_rich\_menu\_to\_user(self, user\_id, rich\_menu\_id, timeout=None)
314
314
315
315
Links a rich menu to a user. Only one rich menu can be linked to a user at one time.
316
316
317
- https://developers.line.me /en/docs /messaging-api/reference /#link-rich-menu-to-user
317
+ https://developers.line.biz /en/reference /messaging-api/#link-rich-menu-to-user
318
318
319
319
.. code :: python
320
320
@@ -336,7 +336,7 @@ unlink\_rich\_menu\_from\_user(self, user\_id, timeout=None)
336
336
337
337
Unlinks a rich menu from a user.
338
338
339
- https://developers.line.me /en/docs /messaging-api/reference /#unlink-rich-menu-from-user
339
+ https://developers.line.biz /en/reference /messaging-api/#unlink-rich-menu-from-user
340
340
341
341
.. code :: python
342
342
@@ -358,7 +358,7 @@ get\_rich\_menu\_image(self, rich\_menu\_id, timeout=None)
358
358
359
359
Downloads an image associated with a rich menu.
360
360
361
- https://developers.line.me /en/docs /messaging-api/reference /#download-rich-menu-image
361
+ https://developers.line.biz /en/reference /messaging-api/#download-rich-menu-image
362
362
363
363
.. code :: python
364
364
@@ -372,7 +372,7 @@ set\_rich\_menu\_image(self, rich\_menu\_id, content\_type, content, timeout=Non
372
372
373
373
Uploads and attaches an image to a rich menu.
374
374
375
- https://developers.line.me /en/docs /messaging-api/reference /#upload-rich-menu-image
375
+ https://developers.line.biz /en/reference /messaging-api/#upload-rich-menu-image
376
376
377
377
.. code :: python
378
378
@@ -384,7 +384,7 @@ get\_rich\_menu\_list(self, timeout=None)
384
384
385
385
Gets a list of all uploaded rich menus.
386
386
387
- https://developers.line.me /en/docs /messaging-api/reference /#get-rich-menu-list
387
+ https://developers.line.biz /en/reference /messaging-api/#get-rich-menu-list
388
388
389
389
.. code :: python
390
390
@@ -501,7 +501,7 @@ https://developers.line.biz/en/reference/messaging-api/#get-demographic
501
501
502
502
If the LINE API server returns an error, LineBotApi raises LineBotApiError.
503
503
504
- https://developers.line.me /en/docs /messaging-api/reference /#error-responses
504
+ https://developers.line.biz /en/reference /messaging-api/#error-responses
505
505
506
506
.. code :: python
507
507
@@ -515,7 +515,7 @@ https://developers.line.me/en/docs/messaging-api/reference/#error-responses
515
515
Message objects
516
516
~~~~~~~~~~~~~~~
517
517
518
- https://developers.line.me /en/docs /messaging-api/reference /#message-objects
518
+ https://developers.line.biz /en/reference /messaging-api/#message-objects
519
519
520
520
The following classes are found in the ``linebot.models `` package.
521
521
@@ -748,6 +748,47 @@ TemplateSendMessage - ImageCarouselTemplate
748
748
)
749
749
)
750
750
751
+ FlexSendMessage
752
+ ^^^^^^^^^^^^^^^^
753
+
754
+ .. code :: python
755
+
756
+ flex_message = FlexSendMessage(
757
+ alt_text = ' hello' ,
758
+ contents = BubbleContainer(
759
+ direction = ' ltr' ,
760
+ hero = ImageComponent(
761
+ url = ' https://example.com/cafe.jpg' ,
762
+ size = ' full' ,
763
+ aspect_ratio = ' 20:13' ,
764
+ aspect_mode = ' cover' ,
765
+ action = URIAction(uri = ' http://example.com' , label = ' label' )
766
+ )
767
+ )
768
+ )
769
+
770
+ ※ You can pass a **dict ** to FlexSendMessage#contents as follows:
771
+
772
+ .. code :: python
773
+
774
+ flex_message = FlexSendMessage(
775
+ alt_text = ' hello' ,
776
+ contents = {
777
+ type : ' bubble' ,
778
+ direction: ' ltr' ,
779
+ hero: {
780
+ type : ' image' ,
781
+ url: ' https://example.com/cafe.jpg' ,
782
+ size: ' full' ,
783
+ aspectRatio: ' 20:13' ,
784
+ aspectMode: ' cover' ,
785
+ action: { type : ' uri' , uri: ' http://example.com' , label: ' label' }
786
+ }
787
+ }
788
+ )
789
+
790
+ Thus, You can send a JSON designed with `Flex Message Simulator <https://developers.line.biz/console/fx/ >`__.
791
+
751
792
With QuickReply
752
793
^^^^^^^^^^^^^^^
753
794
@@ -764,7 +805,7 @@ Webhook
764
805
WebhookParser
765
806
~~~~~~~~~~~~~
766
807
767
- ※ You can use WebhookParser or WebhookHandler
808
+ ※ You can use WebhookParser
768
809
769
810
\_\_ init\_\_ (self, channel\_ secret)
770
811
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -796,7 +837,7 @@ If the signature does NOT match, ``InvalidSignatureError`` is raised.
796
837
WebhookHandler
797
838
~~~~~~~~~~~~~~
798
839
799
- ※ You can use WebhookParser or WebhookHandler
840
+ ※ You can use WebhookHandler
800
841
801
842
\_\_ init\_\_ (self, channel\_ secret)
802
843
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -874,7 +915,7 @@ https://developers.line.biz/en/reference/messaging-api/#request-body
874
915
Webhook event object
875
916
~~~~~~~~~~~~~~~~~~~~
876
917
877
- https://developers.line.me /en/docs /messaging-api/reference /#webhook-event-objects
918
+ https://developers.line.biz /en/reference /messaging-api/#webhook-event-objects
878
919
879
920
The following classes are found in the ``linebot.models `` package.
880
921
0 commit comments