yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.39k stars 1.52k forks source link

bot.editMessage leading to memory dump #806

Open imdkbj opened 4 years ago

imdkbj commented 4 years ago

Bug Report

I have read:

I am using the latest version of the library.

Expected Behavior

Actual Behavior

Steps to reproduce the Behavior

If multiple user are accessing the bot then bot is being dumped with heap memory error and this is happing with editMessage.

kamikazechaser commented 4 years ago

Could you provide a code snippet?

imdkbj commented 4 years ago

Hey! In my code there are multiple use of the same and most of them are crashing.

This is stable if i convert editmessage to sendMessage.

A sample!! Anything wrong i am doing, this issue use to occur in recent days.

image image

XieJiSS commented 4 years ago

use https://github.com/ddopson/node-segfault-handler to dump logs