Create Group Chat
Section titled “Create Group Chat”POST https://eko-h1.dev.ekoapp.com/bot/v1/groups
send message from bot to user’s direct chat
Headers
| Name | Type | Description |
|---|---|---|
| Authentication | string | token from OAuth2 |
| Content-type | string | multipart/formdata |
Request Body
| Name | Type | Description |
|---|---|---|
| uid | array | array of user id to be the member of the group |
| name | string | name of group chat |
| file | file | picture of group chat |
{ "group": { "_id": "69a142cc19e945b500f301ae", "name": "group chat create from bot new 1", "type": "group_chatv2", "settings": { "isPrivate": false, "isMemberManaged": false, "isCreatorManaged": true, "isAdminManaged": true, "isAutoManagedMember": false, "isReadOnly": false, "onlyAdminCanPost": false }, "userCount": 3 }}// examplecurl --location 'https://sea-staging-h1.ekoapp.com/bot/v1/groups' \--header 'Authorization: Bearer <TOKEN>' \--form 'name="group chat create from bot new 1"' \--form 'file=@"/Users/tanawootchawapon/Desktop/Screenshot 2569-02-27 at 10.51.14.png"' \--form 'uids[]="689d65d767fc177d804b1318"' \--form 'uids[]="5728175c7dc091401a37fe8b"'Create a topic in a group chat
Section titled “Create a topic in a group chat”POST https://eko-h1.dev.ekoapp.com/bot/v1/groups/group_id/topics
Replace group_id with the group id you want to create a topic.
Headers
| Name | Type | Description |
|---|---|---|
| Authentication | string | token from OAuth2 |
| Content-type | string | Application/json |
Request Body
| Name | Type | Description |
|---|---|---|
| name | string | name of topic to be created |
{ "topic": { "_id": "69a1462819e945ce72f35736", "name": "TT2", "gid": "69a1452919e9452fd7f34db4" }}// examplecurl --location 'https://sea-staging-h1.ekoapp.com/bot/v1/groups/69a1452919e9452fd7f34db4/topics' \--header 'Content-Type: application/x-www-form-urlencoded' \--header 'Authorization: Bearer <TOKEN>' \--data-urlencode 'name=TT2'Was this page helpful?
Thank you for your feedback!