Comments (4)
Having the same problem as well. Sending the following messages to a bot /cmd param
or text /cmd
results in:
if (msg.message.text && msg.message.text.charAt(0) === '/') {
^
TypeError: Cannot read property 'text' of undefined
at /home/user/path/to/node_modules/node-telegram-bot/lib/Bot.js:221:32
at Array.forEach (native)
at Request._callback (/home/user/path/to/node_modules/node-telegram-bot/lib/Bot.js:216:23)
at Request.self.callback (/home/user/path/to/node_modules/request/request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (/home/user/path/to/node_modules/request/request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (/home/user/path/to/node_modules/request/request.js:1091:12)
from node-telegram-bot.
I have seen this error and the one noted in #79 as well. Have not had a chance to look into it yet. Can confirm that both do occur on occasions
from node-telegram-bot.
Unfortunately, I do not see the connection between them.. Errors occur spontaneously.
from node-telegram-bot.
i change my bot and problem automatically fixed! why?
from node-telegram-bot.
Related Issues (20)
- Error HTTP 409 HOT 3
- got error HOT 1
- "/error" crashes the bot HOT 4
- Native promise HOT 2
- Inline bots HOT 1
- .on fired twice HOT 1
- getFile without dir parameter HOT 1
- pulling and http 409 error HOT 1
- Quick fix for a problem with edited messages (no `msg.message`; but messages include a `msg.edited_message`) HOT 5
- hi, is there an option or a way to send a photo from a url? HOT 1
- Still possible to use streams instead of filepath? HOT 1
- hi is there a way to remove private chat messages?
- "sendContact" not work
- Error: read ECONNRESET HOT 1
- Edited messages causes library to break HOT 9
- Error: Gateway error. HOT 11
- Unhandled rejection Error: read ECONNRESET HOT 1
- bug: replay inline keyboard with callback has crash
- Initialize only with App Id and App Hash
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.