Open numkms opened 7 years ago
Set number of workers to 1 maybe works...
const tg = new Telegram.Telegram('YOUR_TOKEN', { workers: 1 })
how to give url link when clicking on button?
I have the same problem. Are there any solution to this?
I have the same problem. Did anyone get the solution?
Yes i have, u need to use express init in $.onMaster callback
`//init modules const express = require('express'); const port = 8888; var listener = express();
const Telegram = require('telegram-node-bot') const TelegramBaseController = Telegram.TelegramBaseController const TextCommand = Telegram.TextCommand
let tg = new Telegram.Telegram('key');
tg.onMaster(() => { listener.listen(port, function (){ console.log('Your app runing on '+port); });
listener.get('/query',function(req,res){
res.send('your response');
});
});`
Like this
Hello! Im try to use this framework with express framework for notice users via get query from php-app. Well heres my code: `'use strict' const express = require('express'); const app = express(); app.listen(8008);
So i get binded port error cause express execute many times. Some Log
What should i do for fix this issue? Thx and sorry for bad english :)