Use this method to get group or channel information. On success, Chat is returned.
Field | Type | Required | Description |
method | String | Yes | βgetChat" |
chat_id | String | Yes | Unique identifier for Group or Channel. |
Requests
json{ "method": "getChat", "chat_id": "4522291356145774" }
java// The object will be received in the onReceive callback. else if(text.equals("getChat")){ api.getChat(incomingMsg.getChat().getId()); }
javascriptapi.getChat(incomingMsg.chat.id);
pythonnapi.get_chat(chat_id="chatId")
Response
json{ "reference":null, "method":"chatDetails", "chat":{ "inivite_link":"https:\/\/join1.ourpage.me\/join?id=Bcxm3ibwdfySJR05sAsK9sE01yf%2FXq1D4hGcb%2Fo8x2k%3D&type=Group&pay=0&vappId=0", "language_code":null, "description":"", "tagsDefinition":null, "id":"90090684491334028", "title":"z", "type":"Group", "member_count":2, "category":"S", "version":"t95vep" } }