Tdproto docs Logo
  • Basics
  • How to create bot
  • Team related paths
  • Chat related paths
  • Task related paths
  • Group related paths
  • Miscellaneous paths
  • Websockets documentation
  • Client events
  • Server events
  • Enums index
  • Type aliases
  • JSON objects index
  • HTTP Queries
Tdproto docs
  • Group related paths
  • 🇷🇺

Group related paths

GET /api/v4/teams/{team_id}/groups

Get all groups in the team.

🔍 Try it!

Parameters:
  • team_id – ID of the team.

Response JSON Object:
  • ok (boolean) – True if no error occured.

  • result (array) – List of Chat objects.

Status Codes:
  • 200 OK – No error.

DELETE /api/v4/teams/{team_id}/groups

Delete the group.

🔍 Try it!

Parameters:
  • team_id – ID of the team.

Response JSON Object:
  • ok (boolean) – True if no error occured.

Status Codes:
  • 200 OK – No error.

GET /api/v4/teams/{team_id}/groups/{group_id}/members

Get the list of group members.

🔍 Try it!

Parameters:
  • team_id – ID of the team.

  • group_id – ID of the group.

Response JSON Object:
  • ok (boolean) – True if no error occured.

  • result (array) – List of GroupMembership objects.

Status Codes:
  • 200 OK – No error.

DELETE /api/v4/teams/{team_id}/groups/{group_id}/members/{contact_id}

Remove member from the group.

🔍 Try it!

Parameters:
  • team_id – ID of the team.

  • contact_id – ID of the contact.

  • group_id – ID of the group.

Response JSON Object:
  • ok (boolean) – True if no error occured.

  • result (object) – The GroupMembership object.

Status Codes:
  • 200 OK – No error.

Previous Next

  • Project Homepage »
  • © Copyright .

    Built with Sphinx using a theme provided by Read the Docs.