Mentions

Mentions Object

An array of information about a user , a channel or a bot mentioned in a conversation. The object structure varies according to the type of mention.

$user mentions:

Each user mentions object comes with the properties of the $user.

AttributeDescription
type user ($user properties)

{
  "country": "us",
  "timezone": "Asia/calcutta",
  "last_name": "Fisher",
  "first_name": "Scott",
  "language": "en",
  "id": "123456",
  "type":"user",
  "email": "scott.fisher@zylcal.com"
}

 

Bot mentions:

The object structure comes with the below given properties upon mentioning a bot in the conversation with a user or within a channel. 

AttributeDescription
nameName of the bot mentioned
idThe bot's unique ID
typebot
​
{
"name": "Support Bot",
"id": "b-1775998000015152705",
"type": "bot"
}

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocliq.com