Back to Integrations
integrationTelegram node
integrationX (Formerly Twitter) node

Telegram and X (Formerly Twitter) integration

Save yourself the work of writing custom integrations for Telegram and X (Formerly Twitter) and use n8n instead. Build adaptable and scalable Communication, and Marketing workflows that work with your technology stack. All within a building experience you will love.

How to connect Telegram and X (Formerly Twitter)

  • Step 1: Create a new workflow
  • Step 2: Add and configure nodes
  • Step 3: Connect
  • Step 4: Customize and extend your integration
  • Step 5: Test and activate your workflow

Step 1: Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Telegram and X (Formerly Twitter) integration: Create a new workflow and add the first step

Step 2: Add and configure Telegram and X (Formerly Twitter) nodes

You can find Telegram and X (Formerly Twitter) in the nodes panel. Drag them onto your workflow canvas, selecting their actions. Click each node, choose a credential, and authenticate to grant n8n access. Configure Telegram and X (Formerly Twitter) nodes one by one: input data on the left, parameters in the middle, and output data on the right.

Telegram and X (Formerly Twitter) integration: Add and configure Telegram and X (Formerly Twitter) nodes

Step 3: Connect Telegram and X (Formerly Twitter)

A connection establishes a link between Telegram and X (Formerly Twitter) (or vice versa) to route data through the workflow. Data flows from the output of one node to the input of another. You can have single or multiple connections for each node.

Telegram and X (Formerly Twitter) integration: Connect Telegram and X (Formerly Twitter)

Step 4: Customize and extend your Telegram and X (Formerly Twitter) integration

Use n8n's core nodes such as If, Split Out, Merge, and others to transform and manipulate data. Write custom JavaScript or Python in the Code node and run it as a step in your workflow. Connect Telegram and X (Formerly Twitter) with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

Telegram and X (Formerly Twitter) integration: Customize and extend your Telegram and X (Formerly Twitter) integration

Step 5: Test and activate your Telegram and X (Formerly Twitter) workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Telegram to X (Formerly Twitter) or vice versa. Easily debug your workflow: you can check past executions to isolate and fix the mistake. Once you've tested everything, make sure to save your workflow and activate it.

Telegram and X (Formerly Twitter) integration: Test and activate your Telegram and X (Formerly Twitter) workflow

AI-Powered Social Media Amplifier

> Reach out to me for any setup help/consulting.

Automate the curation and sharing of trending GitHub discussions from Hacker News to Twitter and LinkedIn. This workflow leverages AI to generate engaging posts, streamlining your social media content creation and distribution.

How it Works

Crawl Hacker News for GitHub Posts: The workflow fetches trending GitHub-related discussions from Hacker News.
Extract Key Information: Relevant data such as post titles, URLs, and metadata are extracted and filtered to focus only on unposted content.
Fetch Additional Details: For each GitHub post, the workflow retrieves extra information from the GitHub repository page to enrich the post content.
Generate Social Media Posts: Using AI, the workflow automatically generates tailored posts for Twitter and LinkedIn based on the collected data.
Post to Twitter & LinkedIn: The generated content is posted to your Twitter and LinkedIn accounts.
Track and Log Posts: Each post is logged in Airtable for tracking, and its status is updated to ensure no duplicate posts are made.
Telegram Notification: After posting, a summary of the posts is sent to your Telegram chat for real-time updates.

Requirements

n8n Account**: Set up and configured. Sign up here.
API Credentials**: Valid keys for LinkedIn, Twitter, Airtable, OpenAI, and Telegram.
Airtable Base**: Configured with fields such as Title, URL, Post Content, Status, and Timestamp. Get started with Airtable.
Telegram Chat ID**: For receiving real-time notifications.

Set Up Steps

Clone the Workflow: Import the workflow into your n8n environment using the provided JSON.
Configure API Credentials: Enter your API keys for LinkedIn, Twitter, Airtable, OpenAI, and Telegram into the respective nodes.
Set Up Airtable Base: Create an Airtable base with fields such as Title, URL, Post Content, Status, and Timestamp.
Customize Telegram Chat ID: Modify the 'Ping me' node with your Telegram chat ID to receive notifications.
Run the Workflow: Activate the workflow to start the automated content curation and posting process.

Additional Resources

n8n AI Agentic Workflows Guide
n8n AI Workflow Tutorial
n8n Community Tutorial on Building an AI-Powered Telegram Bot

> Note: Chat GPT prompt should/can be tweaked in the step to give the desired behaviour.

Sample Posts from my X and LinkedIn -**

Nodes used in this workflow

Popular Telegram and X (Formerly Twitter) workflows

Automate Crypto News Posting to X & Telegram with AI Summarization

Automate Crypto News Posting to X & Telegram with AI Summarization This n8n template automates the process of curating and sharing the latest cryptocurrency news on X (formerly Twitter) and Telegram. By leveraging AI for content summarization, this workflow allows you to effortlessly maintain an active social media presence, keeping your audience informed about the dynamic crypto market without manual effort. Who is this for? This template is ideal for: Content Creators & Marketers:** Aiming to consistently share valuable news and engage their audience without manual content curation. Crypto Influencers & Educators:** Looking to provide timely news updates to their followers across multiple platforms. Crypto Communities & DAOs:** Seeking to automate news dissemination within their Telegram channels and wider X audience. Anyone interested in automated news monitoring and sharing.** What problem is this workflow solving? Manually tracking, summarizing, and posting crypto news across different social media platforms is time-consuming and requires constant effort. This workflow eliminates these manual tasks, allowing users to: Save Time & Effort:** Automate the entire news curation and posting process. Maintain Consistent Presence:** Ensure a regular flow of valuable crypto news updates on X and Telegram. Increase Audience Engagement:** Provide timely and summarized news to keep your audience informed and engaged. Focus on Strategy:** Free up time to focus on broader content strategy and audience growth instead of repetitive manual posting. What this workflow does: This workflow automates the following key steps: Scheduled News Retrieval: Uses a Schedule Trigger to run every 90 minutes (configurable), initiating the news gathering process. Real-time Crypto News Aggregation: Fetches the latest cryptocurrency news from the CryptoPanic API. Recent News Filtering: Filters news articles to include only those published within the last 30 minutes, ensuring timely updates. Content Extraction from News URLs: Visits individual news URLs and extracts the full article content. AI-Powered Content Summarization: Leverages GPT or other LLMs to extract the core content from news articles. Content Aggregation: Merges content from multiple news articles into a single input for summarization. AI-Driven Social Media Content Generation: Utilizes GPT or other LLMs to summarize the aggregated news and create two distinct outputs: Concise & Engaging X Post: Optimized for Twitter's character limit, designed to be attention-grabbing. Detailed Telegram Report: A more comprehensive summary suitable for a Telegram channel or group. Automated Posting to X (Twitter): Automatically posts the generated X summary to your connected Twitter account. Automated Delivery to Telegram: Automatically sends the detailed Telegram report to your specified Telegram chat ID. Setup: To get started, you will need to configure the following services and credentials: CryptoPanic API Token: Obtain a free API token from the CryptoPanic website: https://cryptopanic.com/ In n8n, navigate to the "HTTP Request" node (named "HTTP Request"). In the node parameters, locate the "URL" field and replace "YOURTOKEN" in the URL with your obtained CryptoPanic API token. OpenAI API Key: Obtain an API key from OpenAI: https://platform.openai.com/ For Content Extraction: In n8n, connect your OpenAI account to the "ContentExtraction GPT3.5" node (named "ContentExtraction GPT3.5"). Use your OpenAI API key for the credentials. For News Summarization & Social Media Content Generation: In n8n, connect your OpenAI account to the "Summary news GPT" node (named "Summary news GPT"). Use your OpenAI API key for the credentials. X (Twitter) Developer Credentials: Create a developer account and project on the X Developer Portal: https://developer.twitter.com/ Obtain the necessary API keys and tokens for your X app. In n8n, connect your X Developer account credentials to the "X" node (named "X"). Telegram Bot and Chat ID: Create a Telegram bot using BotFather on Telegram. Obtain your bot's API token. Obtain the Chat ID of the Telegram chat where you want to send news reports. In n8n, connect your Telegram Bot API token to the "Telegram" node (named "Telegram"). In the "Telegram" node parameters, replace "YOUR_TELEGRAM_CHAT_ID" with your Telegram Chat ID. How to customize this workflow: Adapt to ANY Topic:** Change the "HTTP Request" node to use a news API for your desired topic (AI, Sports, World News, etc.). Critically, adjust the prompts in the "Summary news GPT" node to be relevant to your chosen topic so the AI generates appropriate summaries and social media content. Adjust Scheduling Frequency:** Modify the "Schedule Trigger" node to change how often the workflow runs and posts news. Adjust Scheduling Frequency:** Modify the "Schedule Trigger" node to change the frequency of news updates (e.g., change the interval from 90 minutes to a different value). Modify News Filtering:** Customize the Python code in the "Extract Meta" node to adjust the news filtering criteria. You can change the time window (currently 30 minutes) or filter based on other criteria from the CryptoPanic API response. Experiment with GPT Models:** In the "Summary news GPT" node, try different OpenAI models (e.g., gpt-4, gpt-3.5-turbo-16k) to see how they affect the summarization quality and output. Note that more advanced models may incur higher API costs. Customize AI Prompts:** Fine-tune the system and user prompts in the "Summary news GPT" node to alter the tone, style, or format of the generated X and Telegram content. You can adjust the persona of the AI blogger, the desired level of detail in summaries, or specific keywords to include. Extend to Other Platforms:** Add nodes to post to other social media platforms like LinkedIn, Facebook, or Discord by adapting the "Summary news GPT" prompts and integrating relevant n8n nodes for those platforms. Category: Marketing, Social Media, AI, News Automation, Content Creation Workflow by: Tianyi (muzi) n8n Creators Profile: https://n8n.io/creators/muzi/
+2

AI-Powered Social Media Amplifier

> Reach out to me for any setup help/consulting. Automate the curation and sharing of trending GitHub discussions from Hacker News to Twitter and LinkedIn. This workflow leverages AI to generate engaging posts, streamlining your social media content creation and distribution. How it Works Crawl Hacker News for GitHub Posts: The workflow fetches trending GitHub-related discussions from Hacker News. Extract Key Information: Relevant data such as post titles, URLs, and metadata are extracted and filtered to focus only on unposted content. Fetch Additional Details: For each GitHub post, the workflow retrieves extra information from the GitHub repository page to enrich the post content. Generate Social Media Posts: Using AI, the workflow automatically generates tailored posts for Twitter and LinkedIn based on the collected data. Post to Twitter & LinkedIn: The generated content is posted to your Twitter and LinkedIn accounts. Track and Log Posts: Each post is logged in Airtable for tracking, and its status is updated to ensure no duplicate posts are made. Telegram Notification: After posting, a summary of the posts is sent to your Telegram chat for real-time updates. Requirements n8n Account**: Set up and configured. Sign up here. API Credentials**: Valid keys for LinkedIn, Twitter, Airtable, OpenAI, and Telegram. Airtable Base**: Configured with fields such as Title, URL, Post Content, Status, and Timestamp. Get started with Airtable. Telegram Chat ID**: For receiving real-time notifications. Set Up Steps Clone the Workflow: Import the workflow into your n8n environment using the provided JSON. Configure API Credentials: Enter your API keys for LinkedIn, Twitter, Airtable, OpenAI, and Telegram into the respective nodes. Set Up Airtable Base: Create an Airtable base with fields such as Title, URL, Post Content, Status, and Timestamp. Customize Telegram Chat ID: Modify the 'Ping me' node with your Telegram chat ID to receive notifications. Run the Workflow: Activate the workflow to start the automated content curation and posting process. Additional Resources n8n AI Agentic Workflows Guide n8n AI Workflow Tutorial n8n Community Tutorial on Building an AI-Powered Telegram Bot > Note: Chat GPT prompt should/can be tweaked in the step to give the desired behaviour. Sample Posts from my X and LinkedIn -**

Notify on Telegram and Twitter when new order is added in WooCommerce

This workflow uses a WooCommerce trigger that will run a new product has been added, It will then post the product to Telegram and Twitter. To use this workflow you will need to set the credentials to use for the WooCommerce, Twitter and Telegram nodes.

Promote new Shopify products on Twitter and Telegram

This workflow automatically promotes your new Shopify products on Twitter and Telegram. This workflow is also featured in the blog post 6 e-commerce workflows to power up your Shopify store. Prerequisites A Shopify account and credentials A Twitter account and credentials A Telegram account and credentials for the channel you want to send messages to. Nodes Shopify Trigger node triggers the workflow when you create a new product in Shopify. Twitter node posts a tweet with the text "Hey there, my design is now on a new product! Visit my {shop name} to get this cool {product title} (and check out more {product type})". Telegram node posts a message with the same text as above in a Telegram channel.

Build your own Telegram and X (Formerly Twitter) integration

Create custom Telegram and X (Formerly Twitter) workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Telegram supported actions

Get
Get up to date information about a chat
Get Administrators
Get the Administrators of a chat
Get Member
Get the member of a chat
Leave
Leave a group, supergroup or channel
Set Description
Set the description of a chat
Set Title
Set the title of a chat
Answer Query
Send answer to callback query sent from inline keyboard
Answer Inline Query
Send answer to callback query sent from inline bot
Get
Get a file
Delete Chat Message
Delete a chat message
Edit Message Text
Edit a text message
Pin Chat Message
Pin a chat message
Send Animation
Send an animated file
Send Audio
Send a audio file
Send Chat Action
Send a chat action
Send Document
Send a document
Send Location
Send a location
Send Media Group
Send group of photos or videos to album
Send Message
Send a text message
Send Photo
Send a photo
Send Sticker
Send a sticker
Send Video
Send a video
Unpin Chat Message
Unpin a chat message

X (Formerly Twitter) supported actions

Create
Send a direct message to a user
Add Member
Add a member to a list
Create
Create, quote, or reply to a tweet
Delete
Delete a tweet
Like
Like a tweet
Retweet
Retweet a tweet
Search
Search for tweets from the last seven days
Get
Retrieve a user by username

FAQs

  • Can Telegram connect with X (Formerly Twitter)?

  • Can I use Telegram’s API with n8n?

  • Can I use X (Formerly Twitter)’s API with n8n?

  • Is n8n secure for integrating Telegram and X (Formerly Twitter)?

  • How to get started with Telegram and X (Formerly Twitter) integration in n8n.io?

Need help setting up your Telegram and X (Formerly Twitter) integration?

Discover our latest community's recommendations and join the discussions about Telegram and X (Formerly Twitter) integration.
Trigi Digital
lexgabrees
Andrey Khokhlov

Looking to integrate Telegram and X (Formerly Twitter) in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Telegram with X (Formerly Twitter)

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon