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
  • Chat related paths
  • 🇷🇺

Chat related paths

GET /api/v4/teams/{team_id}/chats/{chat_id}

Get the chat information.

🔍 Try it!

Parameters:
  • team_id – ID of the team.

  • chat_id – ID of the chat.

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

  • result (object) – The Chat object.

Status Codes:
  • 200 OK – No error.

PUT /api/v4/teams/{team_id}/chats/{chat_id}

Change chat settings.

🔍 Try it!

Parameters:
  • team_id – ID of the team.

  • chat_id – ID of the chat.

Request JSON Object:
  • object – The Chat object.

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

  • result (object) – The Chat object.

Status Codes:
  • 200 OK – No error.

POST /api/v4/teams/{team_id}/chats/{chat_id}/messages

Send text message to chat.

🔍 Try it!

Parameters:
  • team_id – ID of the team.

  • chat_id – ID of the chat.

Request JSON Object:
  • object – The Message object.

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

Status Codes:
  • 200 OK – No error.

POST /api/v4/teams/{team_id}/chats/{chat_id}/messages/{message_id}

Edit message.

🔍 Try it!

Parameters:
  • team_id – ID of the team.

  • chat_id – ID of the chat.

  • message_id – ID of the message.

Request JSON Object:
  • object – The Message object.

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

  • result (object) – The Message object.

Status Codes:
  • 200 OK – No error.

DELETE /api/v4/teams/{team_id}/chats/{chat_id}/messages/{message_id}

Delete message.

🔍 Try it!

Parameters:
  • team_id – ID of the team.

  • chat_id – ID of the chat.

  • message_id – ID of the message.

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

  • result (object) – The Message object.

Status Codes:
  • 200 OK – No error.

POST /api/v4/teams/{team_id}/chats/{contact_id}/messages

Send text message to direct chat.

🔍 Try it!

Parameters:
  • team_id – ID of the team.

  • contact_id – ID of the contact.

Request JSON Object:
  • object – The Message object.

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

Status Codes:
  • 200 OK – No error.

POST /api/v4/teams/{team_id}/chats/{contact_id}/messages/{message_id}

Edit message in direct chat.

🔍 Try it!

Parameters:
  • team_id – ID of the team.

  • contact_id – ID of the contact.

  • message_id – ID of the message.

Request JSON Object:
  • object – The Message object.

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

  • result (object) – The Message object.

Status Codes:
  • 200 OK – No error.

DELETE /api/v4/teams/{team_id}/chats/{contact_id}/messages/{message_id}

Delete message in direct chat.

🔍 Try it!

Parameters:
  • team_id – ID of the team.

  • contact_id – ID of the contact.

  • message_id – ID of the message.

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

  • result (object) – The Message object.

Status Codes:
  • 200 OK – No error.

Previous Next

  • Project Homepage »
  • © Copyright .

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