Skip to main content
Glama
prem-research

Telegram MCP Server

get_unread_entities

Retrieve entities containing unread messages on the Telegram messaging platform, enabling users to quickly identify and manage unread conversations.

Instructions

get entitites which have unread messages in it

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registers the 'get_unread_entities' tool using the @mcp.tool decorator with the specified name and description.
    @mcp.tool( name="get_unread_entities", description="get entitites which have unread messages in it", )
  • The handler function for 'get_unread_entities' that makes an HTTP GET request to retrieve unread chats/entities as a dictionary of dictionaries.
    async def get_unread_entities() -> dict[dict]: return get(f"{api_endpoint}get_unread_chats").json()

Other Tools

Related Tools

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