File tree 2 files changed +30
-1
lines changed
2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -453,6 +453,35 @@ TemplateSendMessage - CarouselTemplate
453
453
)
454
454
)
455
455
456
+ TemplateSendMessage - ImageCarouselTemplate
457
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
458
+
459
+ .. code :: python
460
+
461
+ image_carousel_template_message = TemplateSendMessage(
462
+ alt_text = ' ImageCarousel template' ,
463
+ template = ImageCarouselTemplate(
464
+ columns = [
465
+ ImageCarouselColumn(
466
+ image_url = ' https://example.com/item1.jpg' ,
467
+ action = PostbackTemplateAction(
468
+ label = ' postback1' ,
469
+ text = ' postback text1' ,
470
+ data = ' action=buy&itemid=1'
471
+ )
472
+ ),
473
+ ImageCarouselColumn(
474
+ image_url = ' https://example.com/item2.jpg' ,
475
+ action = PostbackTemplateAction(
476
+ label = ' postback2' ,
477
+ text = ' postback text2' ,
478
+ data = ' action=buy&itemid=2'
479
+ )
480
+ )
481
+ ]
482
+ )
483
+ )
484
+
456
485
Webhook
457
486
-------
458
487
Original file line number Diff line number Diff line change 16
16
17
17
from __future__ import unicode_literals
18
18
19
- __version__ = '1.3 .0'
19
+ __version__ = '1.4 .0'
20
20
__author__ = 'LINE Corporation'
21
21
__copyright__ = 'Copyright 2016, LINE Corporation'
22
22
__license__ = 'Apache 2.0'
You can’t perform that action at this time.
0 commit comments