Skip to main content
Glama
prem-research

Telegram MCP Server

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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()
  • 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", )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prem-research/telegram-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server