Replies: 1 comment
-
Listen for bot.on("channel_post", async ctx => {
// ...
}); You can also use filters. For example, if you want to listen for text messages specifically, you can do: import { channelPost } from "telegraf/filters";
bot.on(channelPost("text"), async ctx => {
// ..
}); And so on. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
how can we read new messages coming in the channel in which the bot is admin? for forwarding it to another chat to save it as a backup
Beta Was this translation helpful? Give feedback.
All reactions