Oysho Boy
Oysho Boy

Reputation: 65

Telegram bot ( telegraf.js library ) forwarding messages from one to another channel method?

I'm making a news bot, and need to forward fresh last posted messages from my main channel to another ones.

How can I do it?

// This method to send message to channel, and after I send message I need to forward it to another channels
bot.telegram.sendMessage("@channel", `SOME TEXT`, { parse_mode: 'Markdown' });

Upvotes: 3

Views: 4183

Answers (1)

Oysho Boy
Oysho Boy

Reputation: 65

Found forwardMessage method, here it is: https://telegraf.js.org/#/?id=forwardmessage

Upvotes: 1

Related Questions