Skip to main content
Glama

get_bot_info

Retrieve metadata about the current Telegram bot, including its configuration and operational details.

Instructions

Return metadata about the current Telegram bot.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implementation of the get_bot_info tool which fetches metadata about the Telegram bot.
    @mcp.tool
    async def get_bot_info() -> BotInfoResult:
        """Return metadata about the current Telegram bot."""
        me = await ctx.bot.get_me()
        result = BotInfoResult(
            ok=True,
            id=me.id,
            username=me.username,
            first_name=me.first_name,
            is_bot=me.is_bot,
            can_join_groups=me.can_join_groups,
            can_read_all_group_messages=me.can_read_all_group_messages,
            supports_inline_queries=me.supports_inline_queries,
        )
        if ctx.audit_logger:
            ctx.audit_logger.log("get_bot_info", {}, result.ok, result.error)
        return result

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/Py2755/aiogram-mcp'

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