npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ultra-telegram-framework

v1.1.8

Published

Telegram framework for Google Apps Script and Node.js - Bot API 10.0

Readme

🚀 Ultra Telegram Framework (UTF)

Bot API 10.0 TypeScript Google Apps Script Documentation MIT License Interactive Demo

Ultra Telegram Framework (UTF) is a modern, lightweight, and strongly typed Telegram Bot API framework built for TypeScript.

Designed with flexibility in mind, UTF features a unique adapter-based architecture that allows your bot to run seamlessly across various environments — from classic Node.js servers to Serverless Edge functions and Google Apps Script — without rewriting your core logic.


✨ Highlights

  • 🌍 Write Once, Run Anywhere: Deploy to Node.js, Cloudflare Workers, Vercel Edge, Bun, or Google Apps Script just by swapping the API client.
  • 🎭 Batteries Included: Sessions, Wizard Scenes, and Declarative Inline Menus are built directly into the core. No external plugins needed.
  • 🤖 AI-Ready: Built-in streaming support (ctx.replyWithDraft()) with auto-debouncing for LLM integrations.
  • 🛡️ 100% Type-Safe: Exhaustive TypeScript coverage for the entire Telegram Bot API 10.0. Rich IDE autocompletion out of the box.
  • ☁️ Zero-Config GAS: Automatically bundle and deploy to Google Apps Script with our built-in utf-build CLI tool. No manual webhook boilerplate needed.

📦 Installation

npm install ultra-telegram-framework

🏁 Quick Start (Hello World)

Here is a basic example using the Node.js adapter with long polling. The syntax is designed to be instantly familiar if you have used other popular frameworks.

import { TelegramBot, NodeApiClient } from 'ultra-telegram-framework';

const token = process.env.BOT_TOKEN;
if (!token) throw new Error('BOT_TOKEN is missing!');

// 1. Initialize with the Node adapter
const bot = new TelegramBot(new NodeApiClient(token));

// 2. Setup handlers
bot.command('start', async (ctx) => {
  await ctx.reply('Hello! I am an Ultra Telegram Framework bot 🚀');
});

bot.on('text', async (ctx) => {
  // 100% type-safe: ctx.text is guaranteed to exist here
  await ctx.reply(`You said: ${ctx.text}`);
});

// 3. StartPolling
bot.startPolling().then(() => console.log('🚀 Bot is running...'));

Example 2: Google Apps Script

Write your bot logic once and deploy to GAS without any boilerplate.

import { TelegramBot, GasApiClient } from 'ultra-telegram-framework';

// GasApiClient automatically finds your BOT_TOKEN in Script Properties!
const bot = new TelegramBot(new GasApiClient());

bot.command('start', (ctx) => ctx.reply('Hello from GAS! ☁️'));

Build and deploy with one command:

npx utf-build src/index.ts
clasp push

📚 Documentation & Guides

👉 Read the Full Documentation in our Wiki

To keep this README clean, all detailed guides, tutorials, and advanced concepts are documented in our GitHub Wiki. There you will find:


📄 License

This project is licensed under the MIT License — see the LICENSE file for details.

☕️ Support the Project

If this framework helped you save time, bypass GAS limitations, or build something awesome, consider supporting its development!

💳 Support the project (Monobank)