Back to directory

mtgo

A fast, idiomatic Go client library for the Telegram MTProto API, covering bots and user accounts, with generated protocol types, a handler and middleware system, a plugin lifecycle, pluggable storage backends and MTProxy support.

mtgo

mtgo implements the Telegram MTProto 2.0 protocol in Go, including encryption, key generation, CDN handling and file transfers, with a high-level client API covering messages, chats, media, inline results, stories, payments and business connections. Updates are dispatched to handlers registered with filters, priorities and handler groups, middleware can run at both the RPC-invocation and update-dispatch levels, and a plugin system adds lifecycle hooks; a single process can run multiple bot or user clients together.

It can import and export sessions in the formats used by other MTProto libraries such as Telethon, Pyrogram, GramJS, mtcute and tdesktop, store session state in SQLite, PostgreSQL, MongoDB or a custom adapter, connect over MTProxy or a WebSocket or HTTP transport for restrictive networks, and automatically reconnect with exponential backoff.

It installs as a Go module, with a separate CLI tool and an installable agent skill for coding agents such as Claude Code and Codex.

More in Libraries

See all 292
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • TradeCanvas

    bonguynvan.github.io

    A zero-dependency canvas charting engine for building TradingView-style trading charts in JavaScript, with 66 technical indicators, 24 drawing tools, 17 chart types, and real-time streaming.

  • 3d retro graphics

    3d-retro.com

    A free, CC0-licensed library of copy-paste retro 3D and demoscene graphics effects, such as plasma, raytracing, and voxel terrain, runnable as WebGL 1 or plain 2D canvas.