Telegram Bot by Keyword

Hi. How can I create a Telegram bot via n8n that collects posts/information from other Telegram channels or chats by keywords that I give it, collects them in my private channel. I’m a complete newbie, please help me

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Igorpiskun06,

Thanks for posting!

From a quick search, I don’t think you can directly access posts from a public channel unless the channel allows bots to join or if the messages are public. But you can set up a Telegram bot that uses the API to search for posts with specific keywords. You would probably need to use an external service (e.g., RSS feeds or other API integrations) to monitor public content, and then send the matching messages to your private channel. You can use the HTTP Request node to make requests to these external services.

For channels, where you’re an admin or the bot has access to, you could directly use the Telegram Trigger node in n8n, which listens for new messages in the channels you manage. You can then filter the messages by keywords using Filter or If node, and then send those messages to your private channel. This will require the bot to have the necessary permissions in the channel though.