get_entities
Retrieve all entities from your current Telegram session to access chat participants and group information for messaging interactions.
Instructions
Get all entities in the current session
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp-server/mcp-server.py:35-35 (registration)Registration of the get_entities tool using the @mcp.tool decorator.@mcp.tool(name="get_entities", description="Get all entities in the current session")
- mcp-server/mcp-server.py:36-38 (handler)The handler function that implements the get_entities tool by making an HTTP GET request to retrieve all entities (chats) from the HTTP server endpoint.async def get_entities() -> dict[dict]: """Get all chats in the current session""" return get(f"{api_endpoint}get_chats").json()