Members
(private, static) api
- Source:
Properties:
Name | Type | Description |
---|---|---|
api |
TelegramService | Link to TelegramService |
(private, static) app
- Source:
Properties:
Name | Type | Description |
---|---|---|
app |
Express | Link to Express app |
(private, static) initialized
- Source:
Properties:
Name | Type | Description |
---|---|---|
initialized |
Boolean | If initialized |
Methods
(private, static) authorized(req, res) → {Boolean}
- Source:
Check if call is authorized
Parameters:
Name | Type | Description |
---|---|---|
req |
Request | Web request |
res |
Response | Web response |
Returns:
- Type
- Boolean
(static) init(tapi) → {Promise}
- Source:
Initialize web hooks manager
Parameters:
Name | Type | Description |
---|---|---|
tapi |
TelegramService | Link to Telegram service |
Returns:
- Type
- Promise
(static) list_methods(req, res)
- Source:
Return an help page listing all mounted hooks
Parameters:
Name | Type | Description |
---|---|---|
req |
Request | Web request |
res |
Response | Web response |