telegraf error undefined undefined Error: next(ctx) called with invalid context
See original GitHub issuetelegraf error undefined undefined Error: next(ctx) called with invalid context
at execute (/Users/polly/Web/activecollab-telegram-bot/node_modules/telegraf-inline-menu/node_modules/telegraf/composer.js:303:33)
at /Users/polly/Web/activecollab-telegram-bot/node_modules/telegraf-inline-menu/node_modules/telegraf/composer.js:300:14
at execute (/Users/polly/Web/activecollab-telegram-bot/node_modules/telegraf/composer.js:315:13)
at Promise.resolve.handler (/Users/polly/Web/activecollab-telegram-bot/node_modules/telegraf/composer.js:315:49)
at execute (/Users/polly/Web/activecollab-telegram-bot/node_modules/telegraf/composer.js:315:13)
at Promise.resolve.handler (/Users/polly/Web/activecollab-telegram-bot/node_modules/telegraf/composer.js:315:49)
at /Users/polly/Web/activecollab-telegram-bot/node_modules/telegraf/session.js:24:12
at execute (/Users/polly/Web/activecollab-telegram-bot/node_modules/telegraf/composer.js:315:13)
at Promise.resolve.handler (/Users/polly/Web/activecollab-telegram-bot/node_modules/telegraf/composer.js:315:49)
at /Users/polly/Web/activecollab-telegram-bot/node_modules/telegraf/composer.js:116:56
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:11 (5 by maintainers)
Top Results From Across the Web
telegraf error undefined undefined Error: next(ctx) called with ...
I doubt it is a startup error as on the startup of telegraf-inline-menu no telegraf is involved. I assume there was a message...
Read more >javascript - Stage.enter doesn't start the wizard - Stack Overflow
I created an application which display a survey wizard to the user. When the user launch the /start command, I call the AddProject...
Read more >telegraf.js - v4.11.2
If middleware throws an error or times out, Telegraf calls bot.handleError . If it rethrows, update source closes, and then the error is...
Read more >telegraf/README.md - UNPKG
The CDN for telegraf. ... 42, bot.hears('hi', (ctx) => ctx.reply('Hey there')) ... 242, If middleware throws an error or times out, Telegraf calls...
Read more >Sessions and Storing Data (built-in) - grammY
function getSessionKey(ctx: Context): string | undefined { // Give every user their one personal session storage per chat with the bot // (an ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had no luck with recreating it. I simply generated a new project, installed telegraf-inline-menu and ran a copy of
example.js
.I also used older versions of telegraf and older versions of telegraf-inline-menu without any errors.
I doubt it is a startup error as on the startup of telegraf-inline-menu no telegraf is involved. I assume there was a message that was not yet handled before the start so it happened while handling the first updates (after
bot.startPolling()
was called).Any ideas how to recreate this error?
upgrading telegraf package fixed mine