@@ -81,7 +81,7 @@ class ButtonsTemplate(Template):
8181 def __init__ (self , text = None , title = None , thumbnail_image_url = None ,
8282 image_aspect_ratio = None ,
8383 image_size = None , image_background_color = None ,
84- actions = None , ** kwargs ):
84+ actions = None , default_action = None , ** kwargs ):
8585 """__init__ method.
8686
8787 :param str text: Message text.
@@ -105,6 +105,9 @@ def __init__(self, text=None, title=None, thumbnail_image_url=None,
105105 :param actions: Action when tapped.
106106 Max: 4
107107 :type actions: list[T <= :py:class:`linebot.models.actions.Action`]
108+ :param default_action: Action when image is tapped;
109+ set for the entire image, title, and text area
110+ :type default_action: T <= :py:class:`linebot.models.actions.Action`
108111 :param kwargs:
109112 """
110113 super (ButtonsTemplate , self ).__init__ (** kwargs )
@@ -117,6 +120,7 @@ def __init__(self, text=None, title=None, thumbnail_image_url=None,
117120 self .image_size = image_size
118121 self .image_background_color = image_background_color
119122 self .actions = get_actions (actions )
123+ self .default_action = get_action (default_action )
120124
121125
122126class ConfirmTemplate (Template ):
@@ -214,8 +218,9 @@ class CarouselColumn(Base):
214218 https://developers.line.biz/en/reference/messaging-api/#column-object
215219 """
216220
217- def __init__ (self , text = None , title = None , thumbnail_image_url = None ,
218- image_background_color = None , actions = None , ** kwargs ):
221+ def __init__ (self , text = None , title = None ,
222+ thumbnail_image_url = None , image_background_color = None ,
223+ actions = None , default_action = None , ** kwargs ):
219224 """__init__ method.
220225
221226 :param str text: Message text.
@@ -230,6 +235,9 @@ def __init__(self, text=None, title=None, thumbnail_image_url=None,
230235 :param actions: Action when tapped.
231236 Max: 3
232237 :type actions: list[T <= :py:class:`linebot.models.actions.Action`]
238+ :param default_action: Action when image is tapped;
239+ set for the entire image, title, and text area
240+ :type default_action: T <= :py:class:`linebot.models.actions.Action`
233241 :param kwargs:
234242 """
235243 super (CarouselColumn , self ).__init__ (** kwargs )
@@ -239,6 +247,7 @@ def __init__(self, text=None, title=None, thumbnail_image_url=None,
239247 self .thumbnail_image_url = thumbnail_image_url
240248 self .image_background_color = image_background_color
241249 self .actions = get_actions (actions )
250+ self .default_action = get_action (default_action )
242251
243252
244253class ImageCarouselColumn (Base ):
0 commit comments