Skip to main content
Glama

api_logout

Disconnect from Telegram API to terminate active sessions and ensure secure account management by ending API connections.

Instructions

Disconnect from Telegram API

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the api_logout tool logic: disconnects the Telegram API scraper instance if it exists and returns a success message.
    async handleApiLogout(this: any): Promise<any> { if (this._apiScraper) { await this._apiScraper.disconnect(); this._apiScraper = null; } return { content: [{ type: 'text', text: '✅ Disconnected from Telegram API' }] }; }
  • src/server.ts:373-381 (registration)
    Registration of the 'api_logout' tool in the getTools() method, including its name, description, and empty input schema.
    { name: 'api_logout', description: 'Disconnect from Telegram API', inputSchema: { type: 'object', properties: {}, required: [] } }
  • src/server.ts:107-108 (registration)
    Dispatch case in the tool call handler that routes 'api_logout' calls to the bound handleApiLogout method.
    case 'api_logout': return await this.handleApiLogout();
  • Binding of the apiHandlers.handleApiLogout method to the class instance for use in tool dispatching.
    private handleApiLogout = apiHandlers.handleApiLogout.bind(this);

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/DLHellMe/telegram-mcp-server'

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