Skip to content

Commit b0cfbcd

Browse files
authored
Add an argument animated to ImageComponent (#416)
1 parent 6073cad commit b0cfbcd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

linebot/models/flex_message.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ def __init__(self,
501501
aspect_mode=None,
502502
background_color=None,
503503
action=None,
504+
animated=None,
504505
**kwargs):
505506
"""__init__ method.
506507
@@ -523,6 +524,7 @@ def __init__(self,
523524
:param str background_color: Background color of the image. Use a hexadecimal color code.
524525
:param action: Action performed when this image is tapped
525526
:type action: list[T <= :py:class:`linebot.models.actions.Action`]
527+
:param bool action: True to play an animated image
526528
:param kwargs:
527529
"""
528530
super(ImageComponent, self).__init__(**kwargs)
@@ -542,6 +544,7 @@ def __init__(self,
542544
self.aspect_mode = aspect_mode
543545
self.background_color = background_color
544546
self.action = get_action(action)
547+
self.animated = animated
545548

546549

547550
class SeparatorComponent(FlexComponent):

0 commit comments

Comments
 (0)