Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to monitor new posts on channel with Telegraf API?

I'm creating a Telegram bot, and want it to send me any message when there is new post on channel I made it to monitor. Are there any trigger in Telegraf API for new channel posts?

like image 937
Andrew Avatar asked Sep 05 '25 02:09

Andrew


1 Answers

Question solved. Just needed to use ctx.channelPost. Here is full description of that API - https://telegraf.js.org/#/?id=context

like image 141
Andrew Avatar answered Sep 07 '25 22:09

Andrew