Skip to main content
Module

x/grammy_i18n/deps.ts

Internationalization for grammY powered by Fluent.
Latest
import * as grammyI18n from "https://deno.land/x/grammy_i18n@v1.0.2/deps.ts";

Classes

When your bot receives a message, Telegram sends an update object to your bot. The update contains information about the chat, the user, and of course the message itself. There are numerous other updates, too: https://core.telegram.org/bots/api#update

Message bundles are single-language stores of translation resources. They are responsible for formatting message values and attributes to strings.

Fluent Resource is a structure storing parsed localization entries.

Functions

Negotiates the languages between the list of requested locales against a list of available locales.

Type Aliases

Type of the context object that is available inside the handlers for bot.hears.

Middleware in the form of a function.