Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy/mod.ts>TransformableApi

The Telegram Bot Framework.
Very Popular
Latest
interface TransformableApi
import { type TransformableApi } from "https://deno.land/x/grammy@v1.32.0/mod.ts";

A transformable API enhances the RawApi type by transformers.

Type Parameters

optional
R extends RawApi = RawApi

Properties

raw: R

Access to the raw API that the transformers will be installed on.

use: (...transformers: Transformer<R>[]) => this

Can be used to register any number of transformers on the API.

installedTransformers: Transformer<R>[]

Returns a readonly list or the currently installed transformers. The list is sorted by time of installation where index 0 represents the transformer that was installed first.