Skip to content

Commit 01d74b6

Browse files
committed
Fix test for webhookReply: explicitly set webhookReply to true
1 parent 52688e0 commit 01d74b6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/telegraf.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,11 @@ test.cb('should work with context extensions', (t) => {
288288
})
289289

290290
test.cb('should handle webhook response', (t) => {
291-
const bot = new Telegraf()
291+
const bot = new Telegraf('token', {
292+
telegram: {
293+
webhookReply: true
294+
}
295+
})
292296
bot.on('message', async ({ reply }) => {
293297
const result = await reply(':)')
294298
t.deepEqual(result, { webhook: true })

0 commit comments

Comments
 (0)