Intro to Message Types
Each message of Push Chat is a json payload that carries with it a message type and some parameters that enable each frontend that integrates Push Chat to understand and display various message types.
Push Chat supports an evergrowing list message types, all of which can be sent by chat.send
, though some require passing few additional parameters.
Text
Enables sending simple text messages to the recipient.
Image
Enables sending a single image as a messages to the recipient. You will need to pass the image as base64. Base64 is a method for encoding binary data into ASCII text.
File
Enables sending single file or attachement as a message. You will need to pass the file as base64. Base64 is a method for encoding binary data into ASCII text.
Media Embed
Enables sending a image URLs or media URLs as a message. You can send GIFs, Tweets, Youtube links, etc. Simply pass in the URL of the media as content.
Reaction
Enables reacting by using emoji to a message.
Meta
Enables sending arbitary meta actions in a group. This message type has some rules and it's recommeneded to not interact directly with this message type as Push SDK will handle it for you. It's documentated just for the curious minds.