mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-01-11 14:48:10 +03:00
fix(listeners-explorer): ignore empty callback return data
This commit is contained in:
parent
fcaa89d097
commit
6656c39bd9
@ -141,7 +141,9 @@ export class ListenersExplorerService
|
||||
...args,
|
||||
async (ctx: Context, next: Function): Promise<void> => {
|
||||
const result = await listenerCallbackFn(ctx, next);
|
||||
if (result) {
|
||||
await ctx.reply(String(result));
|
||||
}
|
||||
// TODO-Possible-Feature: Add more supported return types
|
||||
},
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user