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()); }
javascript
api.getChat(incomingMsg.chat.id);
python
napi.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" } }

Powered by Notaku