diff --git a/messengerapi/components.py b/messengerapi/components.py index 315d188..f4cd6f5 100755 --- a/messengerapi/components.py +++ b/messengerapi/components.py @@ -49,8 +49,8 @@ def __init__(self, title="An element of a generic message.", subtitle=None, imag self.__image_url = image_url self.__buttons = [] if buttons is None else buttons - if self.__image_url == None or len(self.__buttons) == 0: - print("WARNING : param image_url and buttons must be non-empty.") + if self.__image_url == None: + print("WARNING : param image_url must be non-empty.") def set_title(self, title): assert isinstance(