From 81c440a3278753abc849634fffed4ef57f7f7eea Mon Sep 17 00:00:00 2001 From: Yousef Mh <121560413+you12sef@users.noreply.github.com> Date: Mon, 13 Nov 2023 23:03:26 +0200 Subject: [PATCH] Update components.py this warning is not true or it is for old graph api version --- messengerapi/components.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(