fix(dispatcher/codegem): added @internal mark, also removed console log call
This commit is contained in:
parent
1c1aed147a
commit
95f6515340
3 changed files with 11 additions and 6 deletions
|
@ -56,7 +56,6 @@ function replaceSections(filename, sections) {
|
|||
}
|
||||
|
||||
const types = parseUpdateTypes()
|
||||
console.log(types)
|
||||
|
||||
async function formatFile(filename) {
|
||||
const targetFile = path.join(__dirname, '../src/', filename)
|
||||
|
@ -141,6 +140,7 @@ function generateBuilders() {
|
|||
>['callback']
|
||||
): ${type.handlerTypeName}Handler
|
||||
|
||||
/** @internal */
|
||||
export function ${type.funcName}(
|
||||
filter: any,
|
||||
handler?: any
|
||||
|
|
|
@ -81,6 +81,7 @@ export namespace handlers {
|
|||
handler: NewMessageHandler<filters.Modify<Message, Mod>>['callback']
|
||||
): NewMessageHandler
|
||||
|
||||
/** @internal */
|
||||
export function newMessage(filter: any, handler?: any): NewMessageHandler {
|
||||
return _create('new_message', filter, handler)
|
||||
}
|
||||
|
@ -105,6 +106,7 @@ export namespace handlers {
|
|||
handler: EditMessageHandler<filters.Modify<Message, Mod>>['callback']
|
||||
): EditMessageHandler
|
||||
|
||||
/** @internal */
|
||||
export function editMessage(
|
||||
filter: any,
|
||||
handler?: any
|
||||
|
@ -134,6 +136,7 @@ export namespace handlers {
|
|||
>['callback']
|
||||
): ChatMemberUpdateHandler
|
||||
|
||||
/** @internal */
|
||||
export function chatMemberUpdate(
|
||||
filter: any,
|
||||
handler?: any
|
||||
|
@ -163,6 +166,7 @@ export namespace handlers {
|
|||
>['callback']
|
||||
): InlineQueryHandler
|
||||
|
||||
/** @internal */
|
||||
export function inlineQuery(
|
||||
filter: any,
|
||||
handler?: any
|
||||
|
@ -192,6 +196,7 @@ export namespace handlers {
|
|||
>['callback']
|
||||
): ChosenInlineResultHandler
|
||||
|
||||
/** @internal */
|
||||
export function chosenInlineResult(
|
||||
filter: any,
|
||||
handler?: any
|
||||
|
|
|
@ -413,7 +413,7 @@ export class Dispatcher {
|
|||
}
|
||||
|
||||
/**
|
||||
* Register a new message handler without any filters.
|
||||
* Register a new message handler without any filters
|
||||
*
|
||||
* @param handler New message handler
|
||||
* @param group Handler group index
|
||||
|
@ -440,7 +440,7 @@ export class Dispatcher {
|
|||
}
|
||||
|
||||
/**
|
||||
* Register an edit message handler without any filters.
|
||||
* Register an edit message handler without any filters
|
||||
*
|
||||
* @param handler Edit message handler
|
||||
* @param group Handler group index
|
||||
|
@ -467,7 +467,7 @@ export class Dispatcher {
|
|||
}
|
||||
|
||||
/**
|
||||
* Register a chat member update handler without any filters.
|
||||
* Register a chat member update handler without any filters
|
||||
*
|
||||
* @param handler Chat member update handler
|
||||
* @param group Handler group index
|
||||
|
@ -499,7 +499,7 @@ export class Dispatcher {
|
|||
}
|
||||
|
||||
/**
|
||||
* Register an inline query handler without any filters.
|
||||
* Register an inline query handler without any filters
|
||||
*
|
||||
* @param handler Inline query handler
|
||||
* @param group Handler group index
|
||||
|
@ -528,7 +528,7 @@ export class Dispatcher {
|
|||
}
|
||||
|
||||
/**
|
||||
* Register a chosen inline result handler without any filters.
|
||||
* Register a chosen inline result handler without any filters
|
||||
*
|
||||
* @param handler Chosen inline result handler
|
||||
* @param group Handler group index
|
||||
|
|
Loading…
Reference in a new issue