def generateBasic(self, title, subtitle, image_url, url, fallback_url=''): self.setTitle(title) self.setSubtitle(subtitle) self.setImageURL(image_url) action = sQButton() action.generateURLButton(url, '') if fallback_url != '': action.urlAddParams(fallback_url) self.setDefaultAction(action) return
def buttonAddShare(self): action = sQButton() action.generateShareButton() self.addButton(action) return
def buttonAddCall(self, text, number): action = sQButton() action.generateCallButton(text, number) self.addButton(action) return
def buttonAddPostback(self, title, payload): action = sQButton() action.generatePostbackButton(title, payload) self.addButton(action) return
def buttonAddURL(self, url, title): action = sQButton() action.generateURLButton(url, title) self.addButton(action) return