fix mini app bot father

This commit is contained in:
lendry
2026-06-26 11:18:07 +03:00
parent 7ed7cbdd16
commit d3ea470d02
12 changed files with 313 additions and 39 deletions

View File

@@ -1160,7 +1160,13 @@ export class AuthGrpcController {
@GrpcMethod('BotService', 'ListAllBots')
listAllBots(command: { requesterId: string; isSuperAdmin?: boolean; search?: string; page?: number; limit?: number }) {
return this.botFather.listAllBots(command.requesterId, Boolean(command.isSuperAdmin), command.search, command.page, command.limit);
return this.botFather.listAllBots(
command.requesterId,
Boolean(command.isSuperAdmin),
command.search,
Number(command.page) || 1,
Number(command.limit) || 20
);
}
@GrpcMethod('BotService', 'SetBotActive')