Map key
for map message type you need to pass map api key you can get from Googal Maps
Messages type
file
like this object
{
message: 'Hey looks at that pic I just found!',
reply: false,
date: new Date().toLocaleTimeString(),
type: 'file',
files: [
{
url: 'https://i.gifer.com/no.gif',
type: 'image/jpeg'
}
],
sender: 'Ahmed Elywa',
avatar: ''
}
map
{
message: 'Meet me there',
reply: false,
date: new Date().toLocaleTimeString(),
type: 'map',
latitude: 30.789901,
longitude: 30.999093,
sender: 'Ahmed Elywa',
avatar: ''
}
quote
{
message: 'What do you mean by that?',
reply: false,
date: new Date().toLocaleTimeString(),
type: 'quote',
quote:
'Hello, how are you? This should be a very long message so that we can test how it fit into the screen.',
sender: 'Ahmed Elywa',
avatar: ''
}
text
by default it work as text
{
message:
'Hello, how are you? This should be a very long message so that we can test how it fit into the screen.',
reply: false,
date: new Date().toLocaleTimeString(),
sender: 'Ahmed Elywa',
avatar: 'https://i.gifer.com/no.gif'
}