Use this method to get group or channel information.
Field | Type | Required | Description |
---|---|---|---|
method |
String | Yes | "getChat" |
app_id |
String | Yes | Unique identifier for App. |
chat_id |
String | Yes | Unique identifier for Chat Group, or Business Channel. |
reference |
String | Optional | Unique identifier for the request. This reference will be echoed in the response. |
The following table outlines the preconditions that must be met for the API to function correctly. Failure to meet these conditions may result in errors or unexpected behavior.
Condition | Description |
---|---|
API must have "Manage Chats" permission |
The API needs "Manage Chats" permission to manage chats within the app. |
✅ On success, the chatDetails
method is returned with an echo of the chat
object.
Field | Type | Returned | Description |
---|---|---|---|
method |
String | Yes | "chatDetails" |
app_id |
String | Yes | Unique identifier for App. |
chat |
Chat | Yes | Chat Object. |
reference |
String | Optional | Unique identifier echoed from the request. |
{
"method": "getChat",
"app_id": "90090700613754551",
"chat_id": "4522291356145774",
"reference": "123456789",
}
api.getChat(incomingMsg.getChat().getId());
api.getChat(incomingMsg.chat.id);
napi.get_chat(chat_id="chatId")
{
"method": "chatDetails",
"app_id": "90090700613754551",
"chat": {
"language_code": "en",
"image": "\\/9j\\/4AAQSkZJRgABAgAAAQABAAD\\/2wBDACgcHiMeGSgjISMtKygwPGRBPDc3PHtYXUlkkYCZlo+AjIqgtObDoKrarYqMyP\\/L2u71\\/\\/\\/\\/m8H\\/\\/\\/\\/6\\/+b9\\/\\/j\\/2wBDASstLTw1PHZBQXb4pYyl+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj\\/wAARCAEAAQADASIAAhEBAxEB\\/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL\\/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpK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7vak3YHFIPag8UAPDNjNIzGmZJ6U8DIoAbnPWqV2CJ\\/qKvkYNQ3UPmRhl+8tJjTM\\/saWAAzrn1ppNWbKE7vMPTtUlss425Xt2o3EU+QDqKjPH0oY1qPV808GoM04MaQybPNPBqFTUgNAx4paaDThSAMUUtFAEFzAJkx0YdDWPIjIxDdRW8aqXlt5q7l+8P1qkyWrmTT422k5701lKnBoAzVGZ\\/9k=",
"description": "Test NEW gROUP",
"photo": {
"thumbnail": {
"width": 120,
"id": "V_vT9kSn_nullde6c172db6a9b5d9764ea99a1371ed5495d1dda12ffaa56b4b3b55428980b446.jpg.thumb.jpg",
"height": 120
},
"width": 256,
"id": "V_vT9kSn_nullde6c172db6a9b5d9764ea99a1371ed5495d1dda12ffaa56b4b3b55428980b446.jpg",
"height": 256
},
"tagsDefinition": null,
"id": "90090684438172188",
"title": "Group Name",
"type": "Group",
"member_count": 2,
"invite_link": "https:\\/\\/djoin.ndbx.me\\/join?id=oI8TSxmwrNoZlWQz4%2BdfdME01yf%2FXq1D4hGcb%2Fo8x2k%3D&type=Group&pay=0&vappId=0",
"category": "S",
"version": "vT9kSn",
},
"reference": "123456789",
}