from CMText.TextClient import TextClient

# Message to be send
message = 'Examples message to be send'

# Media to be send
media = {
            "mediaName": "conversational-commerce",
            "mediaUri": "https://www.cm.com/cdn/cm/cm.png",
            "mimeType": "image/png"
        }

# AllowedChannels in this case Whatsapp
allowedChannels = ['Whatsapp']

# Recipients
to = ['003156789000', '002134567890']

# Instantiate client with your own api-key
client = TextClient(apikey=UNIQUE_API_KEY)

# Add a Rich message to the queue
client.AddRichMessage(message=message, from_='pythonSDK', to=to, allowedChannels=allowedChannels, media=media)

# Send the messages
response = client.send()

# Print response
print(response.text)
[((20, 9, 20, 42), 'CMText.TextClient.TextClient', 'TextClient', (), '', False, 'from CMText.TextClient import TextClient\n')]