Skip to main content
Glama
prem-research

Telegram MCP Server

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the get_entities tool using the @mcp.tool decorator.
    @mcp.tool(name="get_entities", description="Get all entities in the current session")
  • 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()

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