Telegraf Test

JSON →
library 1.2.1 ·javascript
verified Jun 4, 2026

Telegraf Test is a simple test toolkit for Telegram bots that emulates the Telegram Bot API server locally, allowing offline testing without network calls. Current stable version is 1.2.1. It works with Telegraf versions below 3 and supports common test frameworks like Mocha. Key differentiators include local server emulation, support for sending messages, inline queries, and callback queries, and offline operation. It uses Axios to send requests to a local webhook endpoint.