File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -453,6 +453,35 @@ TemplateSendMessage - CarouselTemplate
453453 )
454454 )
455455
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+
456485 Webhook
457486-------
458487
Original file line number Diff line number Diff line change 1616
1717from __future__ import unicode_literals
1818
19- __version__ = '1.3 .0'
19+ __version__ = '1.4 .0'
2020__author__ = 'LINE Corporation'
2121__copyright__ = 'Copyright 2016, LINE Corporation'
2222__license__ = 'Apache 2.0'
You can’t perform that action at this time.
0 commit comments