diff --git a/fbmq/payload.py b/fbmq/payload.py index b1ac2c2..22627c5 100644 --- a/fbmq/payload.py +++ b/fbmq/payload.py @@ -40,7 +40,7 @@ class Message(object): def __init__(self, text=None, attachment=None, quick_replies=None, metadata=None): if text is not None and attachment is not None: raise ValueError('Please set only one parameter "text" or "attachment"') - if not isinstance(quick_replies, list): + if not isinstance(quick_replies, list) and quick_replies is not None: raise ValueError('quick_replies type must be "list"') self.text = text