npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

n8n-nodes-telegram-getupdates-api

v1.3.0

Published

Receive incoming Telegram updates using long polling.

Readme

n8n Telegram poll-based node for servers behind firewalls.

This is an n8n community node. Use this to receive incoming Telegram updates (messages, reactions, posts, etc) using long polling.

Long polling is a pull-based method for receiving updates where the bot repeatedly calls the Telegram Bot API's getUpdates method to retrieve new updates. This an alternative method where Telegram pushes updates to the bot's server via webhook.

The existing n8n Telegram Trigger node uses webhooks, which require:

  • A publicly accessible HTTPS URL​
  • Registering the webhook with Telegram's API​
  • Telegram pushing updates to your server​

This polling-based node instead:

  • ✅ Pulls updates from Telegram's servers
  • ✅ Requires no public URL or webhook setup
  • ✅ Works with servers behind a firewall or on private networks
  • ✅ Better suited for self-hosted n8n setups

n8n is a fair-code licensed workflow automation platform.

Installation
Operations
Credentials Compatibility
Usage
Resources
Version history

Installation

Follow the installation guide in the n8n community nodes documentation.

Operations

This node supports the following triggers:

  • message: New incoming message of any kind - text, photo, sticker, etc.
  • edited_message: New version of a message that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot.
  • channel_post: New incoming channel post of any kind - text, photo, sticker, etc.
  • edited_channel_post: New version of a channel post that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot.
  • business_connection: The bot was connected to or disconnected from a business account, or a user edited an existing connection with the bot
  • business_message: New message from a connected business account
  • edited_business_message: New version of a message from a connected business account
  • deleted_business_messages: Messages were deleted from a connected business account
  • message_reaction: A reaction to a message was changed by a user. The bot must be an administrator in the chat and must explicitly specify "message_reaction" in the list of allowed_updates to receive these updates. The update isn't received for reactions set by bots.
  • message_reaction_count: Reactions to a message with anonymous reactions were changed. The bot must be an administrator in the chat and must explicitly specify "message_reaction_count" in the list of allowed_updates to receive these updates. The updates are grouped and can be sent with delay up to a few minutes.
  • inline_query: New incoming inline query
  • chosen_inline_result: The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot.
  • callback_query: New incoming callback query
  • shipping_query: New incoming shipping query. Only for invoices with flexible price
  • pre_checkout_query: New incoming pre-checkout query. Contains full information about checkout
  • purchased_paid_media: A user purchased paid media with a non-empty payload sent by the bot in a non-channel chat
  • poll: New poll state. Bots receive only updates about manually stopped polls and polls, which are sent by the bot
  • poll_answer: A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself.
  • my_chat_member: The bot's chat member status was updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user.
  • chat_member: A chat member's status was updated in a chat. The bot must be an administrator in the chat and must explicitly specify "chat_member" in the list of allowed_updates to receive these updates.
  • chat_join_request: A request to join the chat has been sent. The bot must have the can_invite_users administrator right in the chat to receive these updates.
  • chat_boost: A chat boost was added or changed. The bot must be an administrator in the chat to receive these updates.
  • removed_chat_boost: A boost was removed from a chat. The bot must be an administrator in the chat to receive these updates.

Credentials

To use this node, you need a Telegram Bot API token. This requires creating a bot through Telegram's BotFather.

  1. Open Telegram and search for @BotFather (look for the verified account with a blue checkmark)​.
  2. Start a conversation and send the /newbot command​.
  3. Follow the prompts to set up your bot.
  4. BotFather will generate an API token that looks like: 123456789:ABCdefGHIjklMNOpqrsTUVwxyz​
  5. In n8n, create a new credential of type "Telegram Bot Token".
  6. Paste your bot token into the Bot Token field​ and save.

Security Note: Never share your bot token publicly or commit it to version control. Anyone with this token can control your bot.​

Compatibility

Requires n8n version 1.0.0 or later

Resources