-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
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
Incorrect bot shutdown #1079
Comments
Got this error too. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using nestjs-console package and I have separate cli entrypoint for commands. That entrypoint initialized application and closes it at the end similar to example below.
And each close call causes
Error: Bot is not running
on following line:https://github.com/hypeertech/nestjs-telegraf/blob/0781837c19be463f3dc924c78327cd229c865081/lib/telegraf-core.module.ts#L120
So is there anyway to add a check there whether the bot is running before stopping it, so that my cli process have correct exit code during CI instead of having error every time due to this?
The text was updated successfully, but these errors were encountered: