Chats
Webhooks that Whapi.Cloud will generate regarding your chats.
Last updated
Was this helpful?
Webhooks that Whapi.Cloud will generate regarding your chats.
Last updated
Was this helpful?
You can find more details about all parameters and their types in .
The chats array contains all chats that were sent to the webhook URL. We mentioned more about the events here:
Use the chats.post
setting to get this webhook.
Use the chats.post
setting to get this webhook.
Use the chats.delete
setting to get this webhook.
Pay attention to the information that has been updated in the changes
array.
To track which label is set on a chat, simply enable the chats.patch
webhook. It includes the current label in the payload whenever the chat is updated. This is the easiest way to get label info without making an HTTP API request.
To track group name or icon changes, enable the groups.patch
webhook.
Use the messages.post
setting to get this webhook.
id*
ChatID string
pattern: ^[\d-]{10,31}@[\w\.]{1,}$
Chat ID
name
string
example: Chat name
Chat name
type*
string
example: group
Chat type
Enum: [ group, contact, broadcast, newsletter ]
timestamp
integer
example: 1675964377
Chat timestamp
chat_pic
string
example: https://example.com/photo.jpg
Chat picture URL
chat_pic_full
string
example: https://example.com/photo.jpg
Chat full picture URL
pin
boolean
example: true
Is chat pinned
mute
boolean
example: true
Is chat muted
mute_until
integer
example: 0
Chat mute until
archive
boolean
example: true
Is chat archived
unread
integer
example: 0
Unread messages count
unread_mention
boolean
example: false
Is chat unread mention
read_only
boolean
example: false
Is chat read only
not_spam
boolean
example: true
Is chat not spam
last_message
labels
Use the chats.patch
setting to get this webhook. Note that chats.patch sends notifications putting in the callback information that was there before the entity was updated and after the entity was updated, showing the difference and what has changed. We have described this in more detail here:
Message