You can now follow Telegraf releases on Telegram
- Added support for Bot API 6.1, and API 6.2.
- Easier Webhooks! Added
Telegraf::createWebhook
which callssetWebhook
, and returns Express-style middleware. [Example] - New docs! at feathers-studio/telegraf-docs. All examples were moved there and updated to full TS and ESM.
- More type exports: Experimental export of internal types (such as the
Extra*
types) now found as:import type { Convenience } from "telegraf/types"
(#1659) - Actual replies: New middleware:
import { useNewReplies } from telegraf/future
that changes the behaviour ofContext::reply*
methods to actually reply to the context message. This will be the default in v5. - Added
Context::sendMessage
andContext:sendWith*
methods to replace the oldContext::reply
andContext::replyWith*
methods. - Updated Telegraf binary! Supports ESM modules, new command-line options
--method
and--data
to call API methods from the command-line.