Expand description

A Telegram Bot framework

Modules

accessaccess

Access control

dialoguedialogue

Dialogue support

Utilities to receive updates using long poll

Methods available in the Bot API

Mime

ratelimitratelimit

Ratelimit support

sessionsession

Session support

Types available in the Bot API

Services to receive updates via webhook

Structs

Telegram Bot API client

The main entry point

Handlers chain

Allows to run a handler for a specific command

Allows to share values of any type between handlers

Allows to process an error returned by a handler

An error returned by a handler

An input for a handler

A predicate decorator

A reference for a value in Context

A wrapper for non-sync UpdateHandler

std::vec::Vec wrapper which guarantees to have at least 1 element.

Enums

A general API error

A specialized result for Chain

An error when converting a HandlerInput

An error when downloading file

An error when executing method

Output of the predicate decorator

A predicate result

Traits

Command shortcuts

Error decorator shortcuts

Allows to process errors returned by handlers

Allows to handle an update

Converts objects into HandlerResult

Predicate shortcuts

Allows to create a specific handler input

An update handler

Type Definitions

A result returned by a handler