We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This code doesn't work:
@TelegramActionHandler({ message: '' })
The text was updated successfully, but these errors were encountered:
The empty string is false value so handlers.filter(({ config }) => config.message) filtered out {message: ''}. Use following code instead of https://github.com/bukhalo/nestjs-telegraf/blob/cef3796f01c5086f6e8438876de5e828056c8056/lib/telegraf.service.ts#L99 may solve that:
handlers.filter(({ config }) => config.message)
{message: ''}
private setupOnMessage(handlers: Handler[]): void { const onMessageHandlers = handlers.filter(({ config }) => config.message !== undefined) onMessageHandlers.forEach(handler => { if (handler.config.message) { this.bot.hears(handler.config.message, this.adoptHandle(handler)) } else { this.bot.on('message', this.adoptHandle(handler); } }); }
Sorry, something went wrong.
chore: rename package update meta and license (pull request #3)
81e206e
@all-contributors please add @edgesite for code, bug
@bukhalo
I've put up a pull request to add @edgesite! 🎉
evilsprut
Successfully merging a pull request may close this issue.
This code doesn't work:
The text was updated successfully, but these errors were encountered: