예제 #1
0
 def AddMessage(self,
                message,
                from_='',
                to=[],
                reference=None,
                allowedChannels=None):
     self.messages.append(
         Message(message,
                 from_=from_,
                 to=to,
                 reference=reference,
                 allowedChannels=allowedChannels))
예제 #2
0
 def AddWhatsappTemplateMessage(self,
                                template,
                                from_='',
                                to=[],
                                reference=None,
                                media=None):
     self.messages.append(
         Message(media=media,
                 from_=from_,
                 to=to,
                 reference=reference,
                 allowedChannels=['Whatsapp'],
                 template=template))
예제 #3
0
 def SendSingleMessage(self,
                       message,
                       from_,
                       to=[],
                       reference=None,
                       allowedChannels=None):
     self.messages = []
     self.messages.append(
         Message(message,
                 from_=from_,
                 to=to,
                 reference=reference,
                 allowedChannels=allowedChannels))
     self.send()