yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.3k stars 1.5k forks source link

Telegram Bot posts in channel not returned in getUpdate query #1005

Closed eviljoen closed 1 year ago

eviljoen commented 1 year ago

Question

I'm posting Tradingview triggers into Telegram channel, I then want to retrieve them using https://api.telegram.org/botxxxxxxxxx/getUpdates to be able to place a trade in Bybit.

I find that the entries made by the TelegramBot are not retrieved with this command, only message from users.

My question is what do I need to do to be able to have the bot channel posts in my getupdates?

danielperez9430 commented 1 year ago

Hi, you use the event bot.on('channel_post', (msg) => {})?