TediCross / TediCross

Bot which bridges Telegram chats with Discord channels
MIT License
675 stars 282 forks source link

TypeError: Cannot read properties of undefined (reading 'message_id') #433

Open ProfEduStream opened 7 months ago

ProfEduStream commented 7 months ago

Hey,

Instead of bothering you on Twitter or something like that, I gonna create a pull request; which I'm not familiar with.

As a french Bitcoin association, we use TediCross to build a bridge between some of our Discord channels and our Telegrams. That's very, very usefull. Thank you !

I'm using TediCross 0.11.4 with Node.js v20.11.0 for a few months and I still have, sometimes, a bug: "TypeError: Cannot read properties of undefined (reading 'message_id')"

Considering I was writing a tutorial for other Bitcoin communities about using TediCross, I was wondering where this bug comes from. ! Sans titre

Do you know why it appears?


Expected: work as usual, no error message.

Reality: at some point, whereas no message had been sent, the bot stops and the "TypeError: Cannot read properties of undefined (reading 'message_id')" error appears. The last time it occured, someone joined the Telegram chat; and all Telegram messages after hadn't been bridged.

Way to solve the problem: just make an "npm start" again.

PS: I know there was on update on TediCross. However, sadly, I couldn't make it work :/

Lulalaby commented 7 months ago

I'm aware of the error but I couldn't reproduce it ever on my local test, hence I wasn't able to fix anything :/ Make sure that the bot can only see what it's supposed to bridge

ProfEduStream commented 7 months ago

Thanks for your answer. I'll try to modify some settings & I gonna edit this post if it works.

Thanks for your answer :)