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
How can you use nestjs-telegraf if your API is running horizontally on several containers at the same time?
nestjs-telegraf
As of now, I get the following error:
409: Conflict: terminated by other getUpdates request...
The text was updated successfully, but these errors were encountered:
I see this line in the source code: https://github.com/robot-mafia/nestjs-telegraf/blob/a94cad7a4b7b536205cb5bfb059313bec16cbc88/lib/utils/create-bot-factory.util.ts#L15
There is a chance that if you pass the option launchOptions: false to Factory, the bot will not launch (This is what causes this error):
launchOptions: false
import { CacheInterceptor, CacheModule, Module } from "@nestjs/common"; import { APP_INTERCEPTOR } from "@nestjs/core"; import { TelegrafModule } from "nestjs-telegraf"; @Module({ imports: [ CacheModule.register({ isGlobal: true }), TelegrafModule.forRoot({ botName: "MY_BOT", token: "API_KEY", options: { handlerTimeout: 180000, }, + launchOptions: false, include: [MyModule], }), ], providers: [ { provide: APP_INTERCEPTOR, useClass: CacheInterceptor }, ], }) export class AppModule {}
However, the bot will not be able to listen for events from Telegram, only manually send message or call api.
Sorry, something went wrong.
No branches or pull requests
How can you use
nestjs-telegraf
if your API is running horizontally on several containers at the same time?As of now, I get the following error:
The text was updated successfully, but these errors were encountered: