rpscript-api-botmaster-telegram
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -5,2 +5,3 @@ import { RpsContext } from 'rpscript-interface'; | ||
token?: string; | ||
webhookEndpoint?: string; | ||
} | ||
@@ -7,0 +8,0 @@ export default class RPSModule { |
@@ -12,3 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const TelegramBot = require('telegram-bot'); | ||
const TelegramBot = require('botmaster-telegram'); | ||
const rpscript_interface_1 = require("rpscript-interface"); | ||
@@ -22,3 +22,6 @@ let MOD_ID = "botmaster-telegram"; | ||
else { | ||
mapContext['botmaster'] = new TelegramBot({ credentials: { authToken: mapContext.token } }); | ||
mapContext['botmaster'] = new TelegramBot({ | ||
credentials: { authToken: mapContext.token }, | ||
webhookEndpoint: mapContext.webhookEndpoint | ||
}); | ||
ctx.addModuleContext(MOD_ID, mapContext); | ||
@@ -25,0 +28,0 @@ } |
{ | ||
"name": "rpscript-api-botmaster-telegram", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "RPScript API for botmaster-telegram", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15127
87