Comments (7)
sorry, i check that and works now :p
from node-telegram-bot-api.
Similar problem here. With basic example:
var bot = new TelegramBot(token, { polling: true });
bot.on('message', function (msg) {
console.log(msg)
});
After some hours of running the bot stops receive messages. And i can see a stablished connection to the telegram server IP thats never disconnect. Then hours later get the message:
Unhandled rejection Error: socket hang up
at createHangUpError (_http_client.js:215:15)
at TLSSocket.socketOnEnd (_http_client.js:300:23)
at TLSSocket.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)
Restarting the process the bot starts receive old messages again.
Its this issue related to polling?
Any luck fixing this?
from node-telegram-bot-api.
Have a similar problem here trying to send files over the API.
I'm using: sendPhoto, sendDocument and sendVoice. All of them generates this error.
Text messages are working.
Unhandled rejection Error: 500
at /app/node_modules/node-telegram-bot-api/src/telegram.js:111:15
at tryCatcher (/app/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/app/node_modules/bluebird/js/main/promise.js:507:31)
at Promise._settlePromiseAt (/app/node_modules/bluebird/js/main/promise.js:581:18)
at Promise._settlePromises (/app/node_modules/bluebird/js/main/promise.js:697:14)
at Async._drainQueue (/app/node_modules/bluebird/js/main/async.js:123:16)
at Async._drainQueues (/app/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate](/app/node_modules/bluebird/js/main/async.js:15:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
from node-telegram-bot-api.
I think sometimes the API have problems, I'm testing with python (eternnoir/pyTelegramBotAPI) and getting error on sending photo and audio files.
from node-telegram-bot-api.
@dtsrwnis: you seem to be using a different node module, this library is named node-telegram-bot-api
and not node-telegram-bot
!
@koalazak: does your problem still persist?
from node-telegram-bot-api.
@GochoMugo let me check again with the latest...
from node-telegram-bot-api.
Issue went too stale...
from node-telegram-bot-api.
Related Issues (20)
- how to create sticker with pack, i'm new with this library so i got many error while trying
- sendMediaGroup - InputMediaDocument HOT 2
- question how to save photos by reply HOT 1
- multiple upload file HOT 1
- bot.on('message', ...) works unexpected
- Occasionally not receiving message update
- Listening for a reply to an image with the '/isimage' command, replying with a message saying 'this is an image' HOT 1
- Deleting old message IDs in Telegram
- function createInvoiceLink not exist HOT 1
- Add to sendInvoice start_parameter HOT 2
- Pre-Checkout Timeout Error while making a Payment
- The editMessageMedia method is working a bit wrong
- The 'Update' object sometimes does not have an attribute 'reply_to_message' in private messages
- Webhook setup via URL returns blank
- Business Mode HOT 5
- please help me i got this error HOT 1
- Bot replys to user no problem, but when i want it to send announchment to channel or group. nothing happens
- I have problem. I have more than 1,500 users, and the bot checks the site if products are available and sends for All the users if they are available. I set that it checks the site every 50 seconds so that the users can get the notification before the stock runs out, but I faced a problem, which is that it is very late. In the transmitter
- Bot occasionally doesn't receive update
- I always get 401 unauthorized error when use test bot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-telegram-bot-api.