File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ def __init__(self,
501
501
aspect_mode = None ,
502
502
background_color = None ,
503
503
action = None ,
504
- animated = None ,
504
+ animated = False ,
505
505
** kwargs ):
506
506
"""__init__ method.
507
507
@@ -524,7 +524,7 @@ def __init__(self,
524
524
:param str background_color: Background color of the image. Use a hexadecimal color code.
525
525
:param action: Action performed when this image is tapped
526
526
:type action: list[T <= :py:class:`linebot.models.actions.Action`]
527
- :param bool action : True to play an animated image
527
+ :param bool animated : True to play an animated image. Default is False.
528
528
:param kwargs:
529
529
"""
530
530
super (ImageComponent , self ).__init__ (** kwargs )
Original file line number Diff line number Diff line change @@ -218,6 +218,7 @@ def test_image_component(self):
218
218
arg = {
219
219
'url' : 'https://example.com/flex/images/image.jpg' ,
220
220
'size' : 'full' ,
221
+ 'animated' : False ,
221
222
'aspect_ratio' : '1.91:1'
222
223
}
223
224
self .assertEqual (
@@ -260,6 +261,7 @@ def test_video_component(self):
260
261
"size" : "full" ,
261
262
"aspect_ratio" : "20:13" ,
262
263
"aspect_mode" : "cover" ,
264
+ "animated" : False ,
263
265
"url" : "https://example.com/image.jpg"
264
266
},
265
267
"aspect_ratio" : "20:13"
You can’t perform that action at this time.
0 commit comments