Skip to main content

@smol/gram@2.3.0
Built and signed on GitHub Actions

Tiny (smol) Telegram Bot API client library with TypeScript types

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
a month ago (2.3.0)
type alias TgAnimation

This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).

Properties

Identifier for this file, which can be used to download or reuse the file

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

Video width as defined by the sender

Video height as defined by the sender

Duration of the video in seconds as defined by the sender

Optional. Animation thumbnail as defined by the sender

Optional. Original animation filename as defined by the sender

Optional. MIME type of the file as defined by the sender

Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.

Add Package

deno add jsr:@smol/gram

Import symbol

import { type TgAnimation } from "@smol/gram";

---- OR ----

Import directly with a jsr specifier

import { type TgAnimation } from "jsr:@smol/gram";

Add Package

npx jsr add @smol/gram

Import symbol

import { type TgAnimation } from "@smol/gram";

Add Package

yarn dlx jsr add @smol/gram

Import symbol

import { type TgAnimation } from "@smol/gram";

Add Package

pnpm dlx jsr add @smol/gram

Import symbol

import { type TgAnimation } from "@smol/gram";

Add Package

bunx jsr add @smol/gram

Import symbol

import { type TgAnimation } from "@smol/gram";