Skip to content
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

Open
armpogart opened this issue Mar 27, 2023 · 2 comments
Open

Incorrect bot shutdown #1079

armpogart opened this issue Mar 27, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@armpogart
Copy link

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.
image

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?

@mvn-h24
Copy link

mvn-h24 commented May 14, 2024

Got this error too.
Im using Both Api to send notifications in many apps which may starts at one time, so i set launchOptions: false, but now at app stop throws this exception.
May be the Module will catch this exception?

@alex4506
Copy link

alex4506 commented Jun 6, 2024

+1

@bukhalo bukhalo added the enhancement New feature or request label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants