Skip to main content

@smol/gram@2.8.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
2 days ago (2.8.0)
type alias TgCreateForumTopicParams

Parameters of TgApi.createForumTopic method.

Properties

Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)

Topic name, 1-128 characters

Color of the topic icon in RGB format. Currently, must be one of 7322096 (0x6FB9F0), 16766590 (0xFFD67E), 13338331 (0xCB86DB), 9367192 (0x8EEE98), 16749490 (0xFF93B2), or 16478047 (0xFB6F5F)

Unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers.

See

Add Package

deno add jsr:@smol/gram

Import symbol

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

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @smol/gram

Import symbol

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

Add Package

yarn dlx jsr add @smol/gram

Import symbol

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

Add Package

pnpm dlx jsr add @smol/gram

Import symbol

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

Add Package

bunx jsr add @smol/gram

Import symbol

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