Closed ac1dloop closed 2 years ago
Hi @ac1dloop , the messages send by your bot or others bots don't generate any event. The thing is, bots can't read messages from another bots. Is a Telegram Bot API server side limitation.
It makes sense. With all bot events it would be a lot of processing for server side. Thank you
Good day, everyone!
I have bot that listens to messages of any kind and logs into console received message.
bot.on('message', (msg) => { console.log(msg) })
In test chat i have another bot (not mine) which responds to specific messages with text or pictures. For some reason when this (not mine) bot sends any message my bot doesnt receive any event I wonder am i using anything wrong? Since every other event from every other person is processed normally
my code for ref:
`const TGBot = require('node-telegram-bot-api');
const token = process.env.TOKEN
const bot = new TGBot(token)
bot.on('message', (msg) => { console.log(msg) })
bot.startPolling()`
Chat pic for ref: https://postimg.cc/1VB7xhPm
messages 1-3 are captured, and message 4 from bot is not seen at all