Socket
Book a DemoInstallSign in
Socket

regraf

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regraf

Continuation of best modern Telegram Bot Framework

latest
Source
npmnpm
Version
1.1.14
Version published
Weekly downloads
16
100%
Maintainers
1
Weekly downloads
 
Created
Source

Bot API Version NPM Version node js-standard-style Community Chat

Introduction

Bots are special Telegram accounts designed to handle messages automatically. Users can interact with bots by sending them command messages in private or group chats. These accounts serve as an interface for code running somewhere on your server.

Regraf is a continuation of the Telegraf@3.

Features

  • Full Telegram Bot API 7.1 support
  • Telegram Payment Platform
  • HTML5 Games
  • Inline mode
  • Incredibly fast
  • Vercel/Firebase/Glitch/Heroku/AWS λ/Whatever ready
  • http/https/fastify/Connect.js/express.js compatible webhooks
  • Easy to extend
  • TypeScript typings

Installation

npm install regraf

or using yarn:

yarn add regraf

Documentation

Regraf developer docs in development.

Examples

const { Regraf } = require('regraf')

const bot = new Regraf(process.env.BOT_TOKEN)
bot.start((ctx) => ctx.reply('Welcome!'))
bot.help((ctx) => ctx.reply('Send me a sticker'))
bot.on('sticker', (ctx) => ctx.reply('👍'))
bot.hears('hi', (ctx) => ctx.reply('Hey there'))
bot.launch()
const { Regraf } = require('regraf')

const bot = new Regraf(process.env.BOT_TOKEN)
bot.command('oldschool', (ctx) => ctx.reply('Hello'))
bot.command('modern', ({ reply }) => reply('Yo'))
bot.command('hipster', Regraf.reply('λ'))
bot.launch()

There's some cool examples too.

Keywords

telegraf

FAQs

Package last updated on 14 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts