fix mini app bot father
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user