mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-29 05:17:41 +00:00
Add token to webHook url
This commit is contained in:
parent
aa9636e1b2
commit
1fa388d609
@ -76,9 +76,8 @@ TelegramBot.prototype._configureWebHook = function (port, host, key, cert) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
TelegramBot.prototype._requestListener = function (req, res) {
|
TelegramBot.prototype._requestListener = function (req, res) {
|
||||||
console.log(req)
|
|
||||||
var self = this;
|
var self = this;
|
||||||
var url = '/bot';
|
var url = '/bot'+this.token;
|
||||||
if (req.url === url && req.method === 'POST') {
|
if (req.url === url && req.method === 'POST') {
|
||||||
var fullBody = '';
|
var fullBody = '';
|
||||||
req.on('data', function (chunk) {
|
req.on('data', function (chunk) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user