mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-09-23 09:49:06 +03:00
feat(decorators): TelegrafGameQuery added
This commit is contained in:
@@ -12,3 +12,4 @@ export * from './telegraf-hashtag.decorator';
|
||||
export * from './telegraf-cashtag.decorator';
|
||||
export * from './telegraf-action.decorator';
|
||||
export * from './telegraf-inline-query.decorator';
|
||||
export * from './telegraf-game-query.decorator';
|
||||
|
11
lib/decorators/telegraf-game-query.decorator.ts
Normal file
11
lib/decorators/telegraf-game-query.decorator.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { SetMetadata } from '@nestjs/common';
|
||||
import { DECORATORS } from '../telegraf.constants';
|
||||
|
||||
/**
|
||||
* Registers middleware for handling callback_data actions with game query.
|
||||
*
|
||||
* https://telegraf.js.org/#/?id=inlinequery
|
||||
*/
|
||||
export function TelegrafGameQuery(): MethodDecorator {
|
||||
return SetMetadata(DECORATORS.GAME_QUERY, {});
|
||||
}
|
Reference in New Issue
Block a user