Replies: 1 comment 2 replies
-
I have some problem too |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello friends
I met with a bug or maybe Error
I found the problem from here but I don't know how to handle it
Error text:
C:\Users\ehsan\Desktop\bot_uni\node_modules\Telegraf\lib\composer.js:474
await handler(context, async (ctx = context) => {
^
TypeError: handler is not a function
My code:
const _adedProfessor = require("./adedProfessor/");
module.exports = async function (bot) {
await bot.use(_adedProfessor(bot));
return bot;
};
module.exports = async function adedProfessor(bot) {
console.log("TEST");
return bot;
};
Beta Was this translation helpful? Give feedback.
All reactions