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

x/grammy/convenience/session.ts>Enhance

The Telegram Bot Framework.
Go to Latest
interface Enhance
import { type Enhance } from "https://deno.land/x/grammy@v1.12.0/convenience/session.ts";

When enhancing a storage adapter, it needs to be able to store additional information. It does this by wrapping the actual data inside an object, and adding more properties to this wrapper.

This interface defines the additional properties that need to be stored by a storage adapter that supports enhanced sessions.

Properties

optional
v: number

Version

__d: T

Data

optional
e: number

Expiry date