Module

x/grammy/convenience/session.ts>Enhance

The Telegram Bot Framework.
Very Popular
Go to Latest
interface Enhance
import { type Enhance } from "https://dotland.deno.dev/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