mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-12-17 02:39:52 +03:00
docs: support docs versioning, new update hook decorators docs added
This commit is contained in:
@@ -228,8 +228,15 @@ export class TelegrafExplorer implements OnModuleInit {
|
||||
key: string,
|
||||
metadata: InlineQueryOptions,
|
||||
) {
|
||||
// @ts-ignore
|
||||
this.telegraf.inlineQuery(metadata.triggers, instance[key].bind(instance));
|
||||
if (metadata.triggers) {
|
||||
// @ts-ignore
|
||||
this.telegraf.inlineQuery(
|
||||
metadata.triggers,
|
||||
instance[key].bind(instance),
|
||||
);
|
||||
} else {
|
||||
this.telegraf.on(metadata.updateType, instance[key].bind(instance));
|
||||
}
|
||||
}
|
||||
|
||||
handleTelegrafGameQuery(instance: object, key: string) {
|
||||
|
||||
Reference in New Issue
Block a user