Skip to main content
Glama
client.go557 B
package tg import "github.com/gotd/td/telegram" type Client struct { appID int appHash string sessionPath string } func New(appID int, appHash, sessionPath string) *Client { return &Client{ appID: appID, appHash: appHash, sessionPath: sessionPath, } } func (c *Client) T() *telegram.Client { opts := telegram.Options{ SessionStorage: &telegram.FileSessionStorage{ Path: c.sessionPath, }, NoUpdates: true, } opts, _ = telegram.OptionsFromEnvironment(opts) return telegram.NewClient(c.appID, c.appHash, opts) }

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

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