Code Monkey home page Code Monkey logo

Comments (5)

LoboAnimae avatar LoboAnimae commented on May 25, 2024

Everything seems to be working properly on my end.

I think testBot should be inside the providers section of BotModule, such as to:

@Module({
  providers: [BotUpdate, BotService, testBot],
})
export class BotModule {}

I cannot tell what testBot is. Is it a service?

from nestjs-telegraf.

C0DDER avatar C0DDER commented on May 25, 2024

any update on this? I faced the same problem

from nestjs-telegraf.

C0DDER avatar C0DDER commented on May 25, 2024

Everything seems to be working properly on my end.

I think testBot should be inside the providers section of BotModule, such as to:

@Module({
  providers: [BotUpdate, BotService, testBot],
})
export class BotModule {}

I cannot tell what testBot is. Is it a service?

in my case it is the bot name specified in the @InjectBot() decorator

from nestjs-telegraf.

warriorBrian avatar warriorBrian commented on May 25, 2024

@erosiners Have you solved this problem? I also encountered the same problem.

from nestjs-telegraf.

warriorBrian avatar warriorBrian commented on May 25, 2024

@evilsprut When injecting the bot, I will be prompted to report an error. I think this is a mistake.

code:

constructor(
		private readonly configService: ConfigService,
		@InjectBot('health') private bot: Telegraf
	) {}

Error:

Please make sure that the argument "healthBot" at index [5] is available in the HealthModule context.

Potential solutions:
- Is HealthModule a valid NestJS module?
- If "healthBot" is a provider, is it part of the current HealthModule?
- If "healthBot" is exported from a separate @Module, is that module imported within HealthModule?
  @Module({
    imports: [ /* the Module containing "healthBot" */ ]
  })

And I don’t know where to solve this healthBot?

from nestjs-telegraf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.