# gotd/td

Telegram client, in Go. (MTProto API)

Repository: https://github.com/gotd/td
Canonical: https://ross.abutalabs.com/products/gotd-td
Homepage: https://gotd.dev
Language: Go
License: MIT
License Family: permissive
Topics: telegram, mtproto, go, tdlib, golang, telegram-bot, telegram-api, bot-api
Last push: 2026-08-25T08:22:33+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 81, longevity 100
- inputs: {"age_days": 2119, "days_push": 8, "days_rel": 50, "gap_med": 6.5, "n_releases_24m": 63}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2318, forks 205 (observed 2026-08-28T04:06:36.986850+00:00)

## What it is
gotd/td is a full MTProto 2.0 Telegram API client library written in pure Go, supporting both user accounts and bots with generated bindings for all 781 Telegram API methods. It includes batteries-included helpers for authentication (code, password, QR, 2FA), message sending, file uploads/downloads, update handling, and robust connection management.

## Use cases
- build a telegram bot in go without the http bot api
- sign in to telegram as a user account programmatically
- send messages and upload files to telegram channels from go
- scrape or monitor telegram channel messages
- implement voice and video calls over telegram
- handle telegram updates with automatic reconnect and flood wait

## When to choose
- you need full Telegram API access beyond the limited Bot API
- you want a pure-Go, dependency-light client with low memory footprint
- you need user-account (userbot) access with QR or 2FA login
- you need thousands of concurrent Telegram client connections

## When to avoid
- you only need a simple bot and prefer the official HTTP Bot API
- you want a high-level wrapper — consider gotgproto on top of gotd
- your language is not Go
- you cannot accept the risk of account bans when using unofficial clients on real accounts

## Facets
- artifact type: library
- maturity: stable
- function: http-client, sdk, auth, websocket, middleware, concurrency
- domain: messaging-platforms, developer-tools, apis, backend
- platform: go, cross-platform, wasm, cli
- tags: telegram, mtproto, telegram-client, telegram-bot, tdlib-alternative, userbot, messaging, automation

## Member repositories
- gotd/td (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:36.986850+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-30T02:38:52.860450+00:00, confidence not recorded.
  - readme: https://github.com/gotd/td (fetched 2026-08-28T04:06:36.986850+00:00, sha bd29a7c7a5c9)
  - homepage: https://gotd.dev (fetched 2026-08-29T10:19:14.198070+00:00, sha 2a5d022510b7)
  - site_page: https://gotd.dev/docs/botapi/overview (fetched 2026-08-29T10:19:14.204133+00:00, sha 3663002cd270)
  - site_page: https://gotd.dev/docs/reference (fetched 2026-08-29T10:19:14.205885+00:00, sha aedf3353bfa5)
  - site_page: https://gotd.dev/docs/support (fetched 2026-08-29T10:19:14.207565+00:00, sha 1fd34097a4ad)
  - site_page: https://gotd.dev/docs/basics/calling-the-api (fetched 2026-08-29T10:19:14.209389+00:00, sha 451d1a437927)
  - site_page: https://gotd.dev/docs/intro (fetched 2026-08-29T10:19:14.202076+00:00, sha 2d817ee6837f)
  - site_page: https://gotd.dev/docs/authentication/qr-login (fetched 2026-08-29T10:19:14.211113+00:00, sha 3a9b45876903)
  - site_page: https://gotd.dev/docs/authentication/two-factor (fetched 2026-08-29T10:19:14.212775+00:00, sha 395ff5a6db9b)
  - site_page: https://gotd.dev/docs/helpers/message-sender (fetched 2026-08-29T10:19:14.214252+00:00, sha 3000124dae20)
- Data as of 2026-08-30T08:39:29.467469+00:00.
