Telegraf Telegraf Versions Save

Modern Telegram Bot Framework for Node.js

v4.8.5

2 years ago
  • Fix: Add exports.import to be able to import Telegraf in Node16+ mode

v4.8.4

2 years ago
  • Adds exports: { types, require } for TypeScript's "module": "Node16". Fixes: #1629, Ref: Handbook

v4.8.3

2 years ago
  • Deprecate ctx.tg; use ctx.telegram instead
  • Retry on 429 flood waits (fixes #1563)
  • Export type MiddlewareObj

v4.8.2

2 years ago
  • accept testEnv as an option to Telegraf / Client

v4.8.1

2 years ago
  • fix: added a dummy types.js so importing "telegraf/types" does not cause an eslint import resolution error

v4.8.0

2 years ago
  • Upgrade to [email protected]; Bot API 6.0 and Web App support
  • Added Markup.button.webApp helper
  • Added ctx.webAppData shorthand to retrieve web_app_data more ergonomically
  • Update minimist to latest, resolves a vulnerability
  • ⚠️ Experimental!: typegram & telegraf types exported as telegraf/types to be imported directly without relying on a separate dependency on typegram. The export interface is not stable. It may change at a later date. Feedback welcome

v4.7.0

2 years ago

Features:

  • Upgrade to [email protected] and Bot API 5.7 support.
  • All dependencies updated, audit warnings resolved.

Fixes:

  • fix: BREAKING! ctx.approveChatJoinRequest and ctx.declineChatJoinRequest now implicitly use ctx.chat.id instead of expecting chatId as first parameter.

v4.6.0

2 years ago
  • Bot API 5.6 support
  • New Composer.spoiler and Composer#spoiler methods.

v4.5.2

2 years ago
  • BREAKING: banChatSenderChat and unbanChatSenderChat now infer this.chat.id instead of taking it as first parameter.

v4.5.1

2 years ago
  • Support Bot API 5.4 and 5.5
  • Deprecate kickChatMember in favour of banChatMember
  • fixed doc build in CI