I built tmgc, a Telegram MTProto CLI in Go. It is a thin, practical wrapper around gotd/td, focused on automation and AI agents with predictable commands and machine-friendly output.

Highlights:

  • QR login with a PNG fallback
  • Chat history and message search
  • Send messages (text or file) and schedule messages
  • Human, JSON, or TSV output
  • Session storage in the OS keychain (or file fallback)

Links: