get_unread_entities
Retrieve Telegram entities with unread messages to identify conversations requiring attention.
Instructions
get entitites which have unread messages in it
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp-server/mcp-server.py:16-17 (handler)The asynchronous function implementing the get_unread_entities tool logic, which fetches unread chats from the HTTP endpoint and returns them as a dictionary of dictionaries.async def get_unread_entities() -> dict[dict]: return get(f"{api_endpoint}get_unread_chats").json()
- mcp-server/mcp-server.py:12-15 (registration)Registers the get_unread_entities tool with the FastMCP server using the @mcp.tool decorator.@mcp.tool( name="get_unread_entities", description="get entitites which have unread messages in it", )