Overview

Overview of capabilities and general structure.

What is Telego?

This library was designed to be the one-to-one implementation of Telegram Bot API, with all methods and types represented in Go code. It’s also, easy-to-use and understand, because of the same naming and types as described in Telegram API with as small as possible differences. Telego provides almost all comments and descriptions in godoc.

Since using bare methods and types is not so convenient, Telego gives you a lot of helpers, utilities, and even update handlers with predicates.

What can it do?

Basically, anything that Telegram provides for developers of bots and much more with wide configuration capabilities, utilities and helpers. It’s even added to the official Telegram code examples page.

Quick Start

Quick Start for fast and easy development.

Tutorial

Tutorial for full-features overview.

Short explanation

If you want to quickly create your first bot and don’t want to know the full capabilities of Telego, visit Quick Start.

If you want to know more, you can go to Tutorial and read about different parts of Telego and how you can combine them. An in-depth explanation of different “levels” and concepts that Telego may be informally divided is described in Low Level, Medium Level, and High Level respectfully.

Fill free to build your own abstractions around Telego to fulfill your needs if plain Telego isn’t enough for you.

How one-to-one implementation achieved?

Managing this number of abilities that Telegram bots provide is quite hard, so Telego parts that represent API are generated from docs itself. Every method and type with respectful documentation is obtained from documentation and restructured in Go code which we can use. If you are interested in how it actually works and how Telego is really easy to maintain up to date, visit generator implementation here.