Comments (9)
Receiving a messages via getUpdates or a webhook?
from hubot-telegram.
getUpdates
Edit: The messages are received correctly INFO Receiving message_id: 2312
. Something happens when they get processed.
from hubot-telegram.
I am not experiencing this problem, do you perhaps have any custom heroku scripts running? The text is empty
error usually happens when using sendMessage
with an empty "text" parameter. The getUpdates
call does not validate any text
parameters.
from hubot-telegram.
I'm not running on heroku. I'll try disabling some scripts and see what happens.
from hubot-telegram.
sorry I meant hubot, not heroku XD
from hubot-telegram.
Seems like it happens when the bot is trying to answer a command. I have as many errors as I have commands in the getUpdates queue waiting to be processed.
from hubot-telegram.
It fixed itself, somehow.
from hubot-telegram.
You can add some debug on line 79 of telegram.coffee:
send: (envelope, strings...) ->
self = @
console.log(strings.join())
@api.invoke 'sendMessage', { chat_id: envelope.room, text: strings.join() }, (err, message) =>
If that is populated but you receive the error, it means its somehow being lost in the adapter. If the output is empty, it is possibly a bad hubot script not specifying the message string correctly...possibly some script using .hear
and trying to respond to every message. I haven't been able to replicate it on my instance.
from hubot-telegram.
It isn't happening anymore. I just removed hubot-telegram's directory and reinstalled via npm. I will investigate further if it ever appears again. For now, I'll just close this.
from hubot-telegram.
Related Issues (20)
- Receiving double messages when polling
- ERROR Error: HTTP status 504 returned. HOT 2
- ERROR TypeError: Cannot read property 'message_id' of undefined HOT 11
- bot no receiving messages from supergroup HOT 5
- API fields have been renamed HOT 2
- Remove bot name when using /command@bot_name HOT 1
- Maximum call stack size exceeded HOT 6
- Slow connectivity causes duplicate messages HOT 2
- Newbie request
- error on help command (and workaround) HOT 11
- Expose reply_to_message from message
- Add `hubot-adapter` topic HOT 1
- / commands in supergroups not working HOT 2
- Proxy issues HOT 1
- CoffeeScript 2.x support HOT 2
- Read the response text of a message HOT 1
- Group Chat Slash Command With Mention HOT 1
- Interval Issue HOT 1
- Markdown with Bad Entities
- Error seeking help HOT 1
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 hubot-telegram.