How can I capture the Cliq channel name from Deluge Script?

How can I capture the Cliq channel name from Deluge Script?

I am working on a chat automation with a third party tool called Make.com. Using a webhook I am relaying information from the Bot I have created in Zoho Cliq to Make.com Webhook.

I am using the Mention Handler of the bot in Cliq to relay information like firstName, lastName, userID, esrEmail, chatID but I am not able to get the deluge script to get me the channel name. I am hoping if someone can help me figure out the identifier that I can use to capture channel name.

For reference here is my Deluge code for mention handler:

  1. // Get the user's message
  2. user_message = message;
  3. // Create the payload with the actual message and user info
  4. make_payload = Map();
  5. make_payload.put("userMessage",user_message);
  6. // Add user information - these ARE available in the Mention Handler
  7. make_payload.put("userFirstName",user.get("first_name"));
  8. make_payload.put("userLastName",user.get("last_name"));
  9. make_payload.put("userId",user.get("id"));
  10. // This is the ZUID you need for Reply To
  11. make_payload.put("userEmail",user.get("email"));
  12. // Add chat context information
  13. make_payload.put("chatId",chat.get("id"));
  14. make_payload.put("chatName",chat.get("name"));
  15. // Add message ID for reply feature
  16. if(!message_details.isNull())
  17. {
  18. make_payload.put("messageId",message_details.get("message").get("id"));
  19. }
  20. // Make.com webhook URL
  21. make_webhook_url = "(Webhook URL)";
  22. // Send the data to Make.com
  23. webhook_response = invokeurl
  24. [
  25. url :make_webhook_url
  26. type :POST
  27. parameters:make_payload.toString()
  28. content-type:"application/json"
  29. ];
  30. // Optional - provide feedback that the bot received the message
  31. response = Map();
  32. return response;