Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 def buttonAddShare(self):
     action = sQButton()
     action.generateShareButton()
     self.addButton(action)
     return
Ejemplo n.º 3
0
 def buttonAddCall(self, text, number):
     action = sQButton()
     action.generateCallButton(text, number)
     self.addButton(action)
     return
Ejemplo n.º 4
0
 def buttonAddPostback(self, title, payload):
     action = sQButton()
     action.generatePostbackButton(title, payload)
     self.addButton(action)
     return
Ejemplo n.º 5
0
 def buttonAddURL(self, url, title):
     action = sQButton()
     action.generateURLButton(url, title)
     self.addButton(action)
     return