-
Notifications
You must be signed in to change notification settings - Fork 29
reply and replyWithMarkdown doesn't work in prod #23
Comments
Deployed the same bot to heroku, it has absolutely the same behaviour there. All api calls are made correctly, yet nothing in the reply. |
I don't know what is the issue with now/heroku; yet pushing the same code to digitalocean worked 🤷♂ |
Facing the same issue everything is working fine in development but when code is pushed on heroku I see webhook being called with request logs and commands are also executing (can see the logs) but doesn't see any reply in bot chat |
I had the same problem, after many test i saw that if you put an extra "ctx.reply('dummy')" before your real "ctx.reply" you'll see the last one printed! It's look like a bug.. |
Yeah, I gave up on this one last year tbh, it's a bug for sure. |
Ok, have you use another module instad of "micro-bot" to bypass the problem? |
I solve the problem removing "micro-bot" and configuring my "index.js" to use Telegraf (i've remove"Procfile" and è configure "pakage.json" with.. |
I have quite an unusual bot behaviour. I have a simple bot which was scaffolded with
create-bot
/micro-bot
. It listens for a few commands and does some API calls. It was working fine, and yesterday, but since this morning it stopped responding on the prod servers (now
).yarn dev
work perfectly, everything as expected. When pushed to prod; bot doesn't respond to anyreply
orreplyWithMarkdown
. Yet I can see all console.log statements, logs in the now dashboard, database being updated, but still, no bot replies.I'm genuinely confused, did someone came across this issue?
Some code examples:
now.json
package.json
(i'm using secrets to store bot token, and it worked very well yesterday)index.js
The text was updated successfully, but these errors were encountered: