# xelaj/mtproto

🦋 Full-native go implementation of Telegram API

Repository: https://github.com/xelaj/mtproto
Canonical: https://ross.abutalabs.com/products/xelaj-mtproto
Language: Go
License: MIT
License Family: permissive
Topics: golang, telegram, telegram-api, mtproto, tdlib, tdlib-go, tdlib-docker, telegram-bot, api-client, awesome, awesome-golang, go, hacktoberfest, hacktoberfest2020
Last push: 2024-03-13T16:32:09+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2159, "days_push": 903, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1346, forks 136 (observed 2026-08-28T04:04:27.528420+00:00)

## What it is
A full-native Go implementation of the Telegram MTProto protocol, providing a client library for interacting with the Telegram API without external dependencies. It supports the latest API schema, multi-accounting, and gateway mode while leaving session storage and auth control to the developer.

## Use cases
- build a telegram bot in go
- send messages via telegram api from golang
- implement a custom telegram client
- read telegram channel messages programmatically
- manage multiple telegram accounts in one app
- avoid tdlib dependency for telegram integration

## When to choose
- you want a pure-Go Telegram client with no C dependencies like TDLib
- you need fine-grained control over sessions, auth, and caching
- you need support for recent Telegram API features like video calls and comments

## When to avoid
- you want a batteries-included client with built-in caching and database storage
- you need a battle-tested, widely adopted library for production-critical systems
- you prefer higher-level bot frameworks with simpler abstractions

## Facets
- artifact type: library
- maturity: active
- function: http-client, serialization, cryptography, sdk
- domain: messaging-platforms, apis, developer-tools
- platform: go, cross-platform
- tags: telegram, mtproto, telegram-api, telegram-client, api-client, tdlib-alternative

## Member repositories
- xelaj/mtproto (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:27.528420+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:42:43.315957+00:00, confidence not recorded.
  - readme: https://github.com/xelaj/mtproto (fetched 2026-08-28T04:04:27.528420+00:00, sha b1429a80dabf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
