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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@grigoreo-fox/n8n-nodes-telegram-webapp-auth

v1.0.0

Published

Telegram WebApp Auth Node for n8n

Readme

@grigoreo-fox/n8n-nodes-telegram-webapp-auth

This is an n8n community node. It lets you validate Telegram WebApp init data in your n8n workflows.

Telegram WebApp Auth provides secure authentication and data validation for Telegram Mini Apps (Web Apps), allowing you to verify that data coming from your Telegram bot's web interface is legitimate and hasn't been tampered with.

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.

The package name is:

@grigoreo-fox/n8n-nodes-telegram-webapp-auth

Operations

This node performs validation of Telegram WebApp init data:

  • Validate Init Data - Validates the init data string received from a Telegram Mini App using your bot's token
    • Parses the init data to extract user information, query parameters, and other metadata
    • Cryptographically validates the data signature to ensure authenticity
    • Returns parsed data for valid requests
    • Optionally routes failed validations to a separate output for error handling

Credentials

This node uses the standard Telegram API credentials from n8n.

Prerequisites

  1. Create a Telegram bot using @BotFather
  2. Obtain your bot token from BotFather
  3. Set up a Web App for your bot (using /newapp command in BotFather or by setting a web_app button)

Setting up credentials in n8n

  1. In your n8n workflow, add the Telegram WebApp Auth node
  2. Click on Select Credential > Create New Credential
  3. Select Telegram API
  4. Enter your bot token in the Access Token field
  5. Save the credentials

The bot token is used to validate that the init data was actually sent by Telegram and hasn't been modified.

Compatibility

  • Minimum n8n version: 1.0.0
  • Tested with: n8n v1.0.0+
  • Node API version: 1

This node uses the @tma.js/init-data-node library for validation, which follows Telegram's official authentication protocol.

Usage

Basic Validation

  1. Add the Telegram WebApp Auth node to your workflow
  2. Connect it after receiving data from your Telegram Mini App
  3. Set the Init Data field to the init data string (usually from a webhook or API request)
    • You can use expressions like {{ $json.initData }} to reference data from previous nodes
  4. Configure credentials with your bot token

The node will output:

  • isValid: true with parsed user data if validation succeeds
  • isValid: false with a reason field if validation fails

Advanced: Separate Failed Output

Enable Add Separate Failed Output in the Additional Fields section to:

  • Route successful validations to the first output
  • Route failed validations to the second output
  • Build different workflows for valid vs invalid requests

Example Response

Successful validation:

{
  "isValid": true,
  "data": {
    "authDate": 1234567890,
    "queryId": "AAHdF6IQAAAAAN0XohDhrOrc",
    "user": {
      "id": 123456789,
      "firstName": "John",
      "lastName": "Doe",
      "username": "johndoe",
      "languageCode": "en"
    },
    "hash": "abc123..."
  }
}

Failed validation:

{
  "isValid": false,
  "reason": "Invalid signature"
}

Resources

Version history

0.1.0 (Current)

Initial release with core functionality:

  • Init data validation using bot token
  • Parsing of Telegram user data
  • Optional separate output for failed validations
  • Support for all standard Telegram WebApp init data fields