Skip to content

Commit f53e919

Browse files
committed
Fix Telegraf after v4 upgrade
1 parent b019667 commit f53e919

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Telegraf = require('telegraf');
1+
const { Telegraf } = require('telegraf');
22
const fs = require('fs');
33
const YAML = require('yaml');
44

routes/hears.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* =====================
44
* If i write "hi" bot response "hello"
55
*/
6-
const Markup = require('telegraf/markup');
6+
const { Markup } = require('telegraf');
77

88
module.exports = function (bot, info, config, auth) {
99

0 commit comments

Comments
 (0)