Use this method to set chat group or channel information. On success, Chat is returned.
Field | Type | Required | Description |
method | String | Yes | "setChat" |
chat | Yes | Unique identifier for Group or Channel. |
Requests
json{ "method": "setChat", "chat": { "id": "4785414566712341", "name": "Harley", "photo": { "id": "8d7773be34db78.jpg" } } }
javaChat chat = new Chat(); chat.setTitle("NEW TITLE"); chat.setId("4522291356145774"); api.setChat(chat);
javascriptlet chat = new Chat(); chat.title = "NEW TITLE"; chat.id = "4522291356145774"; api.setChat(chat);
pythonchat = Chat() chat.id="chatId" chat.title="Hello World" napi.set_chat(chat=chat)
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" } }