Comments (1)
The problem is currently solved like this:
@Update()
export class Middleware implements OnModuleInit {
constructor(
@Inject(TELEGRAF_STAGE)
private readonly stage: Scenes.Stage<any>,
) {}
public onModuleInit(): void {
this.stage.use((ctx: SceneContext, next: () => Promise<void>) => {
// something...
return next();
});
}
}
from nestjs-telegraf.
Related Issues (20)
- NestJS guard crashing server when canActivate is false HOT 3
- changing bot token while application is running
- scene is undefined in middleware HOT 1
- How to use wizard with composer? HOT 1
- Webhook(s) for multiple telegram bots HOT 1
- Multiple bots - @Start command issue HOT 2
- API 7.0 Support - Reactions HOT 1
- @Message decorator issue (typeorm/refrect-metadata related) HOT 2
- Same command for different chat type (private and group)
- Issue with [email protected] HOT 5
- issue with [email protected] HOT 2
- Race condition in setting webhook HOT 2
- documentation website from readme is down HOT 2
- How to use setMyCommand function of telegraf to update command menu on UI telegram bot?
- Secret Token guard
- 409: Conflict: terminated by other getUpdates request HOT 1
- use.decorator.d.ts build faild
- Outdated docs link on the npm page
- App Crashing on Bot Error
- Invalid docs link in npmjs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nestjs-telegraf.