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

@inite/n8n-nodes-telepilot

v0.6.4

Published

Your personal Telegram CoPilot

Readme

n8n-nodes-telepilot

This is an n8n community node that provides native Telegram integration using GramJS - a powerful JavaScript/TypeScript implementation of the Telegram API.

n8n is a fair-code licensed workflow automation platform.

Installation
Operations
Credentials
Compatibility
Usage
Resources
Version

Installation

Follow the installation guide in the n8n community nodes documentation.

npm

npm install @inite/n8n-nodes-telepilot

n8n

In n8n, navigate to Settings > Community Nodes and install:

@inite/n8n-nodes-telepilot

Operations

TelePilot Node

Main node for interacting with Telegram API:

User Operations

  • Get Me - Get information about the current user
  • Get User - Get user information by ID
  • Get User Full Info - Get detailed user information
  • Create Private Chat - Create a private chat with a user
  • Create Secret Chat - Create an end-to-end encrypted chat

Contact Operations

  • Get Contacts - Retrieve your contact list

Chat Operations

  • Get Chat History - Retrieve message history from a chat
  • Get Chats - List available chats/dialogs
  • Get Chat - Get specific chat information
  • Search Public Chat - Find public chats by username
  • Search Public Chats - Search for public chats by query
  • Join Chat - Join a channel or group
  • Open Chat - Mark chat as opened
  • Close Chat - Mark chat as closed
  • Toggle Chat Mark as Unread - Mark/unmark chat as unread
  • Create Supergroup - Create a new supergroup or channel
  • Delete Chat - Delete a chat/dialog
  • Add Chat Members - Add users to a channel
  • Send Chat Action - Send typing/uploading status

Message Operations

  • Get Message - Retrieve a specific message
  • Send Message - Send a text message
  • Send Audio - Send audio files or voice messages
  • Send File - Send any file type
  • Send Photo - Send images
  • Edit Message - Edit message text
  • Delete Messages - Delete one or multiple messages
  • Forward Messages - Forward messages between chats

File Operations

  • Get Remote File - Get remote file information
  • Download File - Download files from Telegram

Group Operations

  • Get Supergroup - Get supergroup/channel information
  • Get Supergroup Full Info - Get detailed supergroup information

Login Operations

  • Login - Interactive authentication with phone number
  • Help - Show available commands
  • Status - Check authentication status
  • Clear - Clear local session
  • Stop - Terminate current session

TelePilot Trigger Node

Trigger node for listening to Telegram events:

Supported Events

  • New Message - Triggered when new messages arrive
  • Message Edited - Triggered when messages are edited
  • Message Deleted - Triggered when messages are deleted
  • User Status - Triggered on user status changes
  • Chat Action - Triggered on typing indicators and other actions
  • * - Listen to all events

Credentials

To use this node, you need Telegram API credentials:

  1. Get API credentials:

    • Go to https://my.telegram.org
    • Log in with your phone number
    • Navigate to "API development tools"
    • Create a new application
    • Copy your api_id and api_hash
  2. Configure in n8n:

    • Create new credentials of type "TelePilot API"
    • Enter your api_id
    • Enter your api_hash
    • Enter your phone number (with country code, e.g., +1234567890)
  3. Authenticate:

    • Use the Login operation in the TelePilot node
    • Follow the interactive authentication flow
    • Enter the code sent to your Telegram app
    • If 2FA is enabled, enter your password

Compatibility

  • Minimum n8n version: 0.199.0
  • Tested with n8n: 0.220.0+
  • Node.js: 18.x or higher

Usage

Basic Message Sending

// 1. Create TelePilot credentials with your API credentials
// 2. Add TelePilot node to your workflow
// 3. Select operation: Message > Send Message
// 4. Enter chat_id (can be user ID or chat ID)
// 5. Enter your message text

Listening to New Messages

// 1. Add TelePilot Trigger node
// 2. Select events: "New Message"
// 3. Activate workflow
// 4. New messages will trigger the workflow

Authentication Flow

The node uses GramJS with StringSession-based authentication:

  1. First login: Uses interactive authentication with phone number and code
  2. Session storage: Saves encrypted session to .session files
  3. Subsequent logins: Automatically restores session from file
  4. 2FA support: Prompts for password if two-factor authentication is enabled

Working with Audio/Voice Messages

// Send as voice message:
// - Set "Send as Voice" to true
// - Provide audio file path or binary data
// - Voice messages work best with .ogg format

// Send as audio file:
// - Set "Send as Voice" to false
// - Any audio format supported

Resources

Version History

0.6.3 (Current)

  • Migrated from telepilot-tdl to native GramJS
  • Improved performance and reliability
  • Better session management with StringSession
  • Fixed client initialization issues
  • Enhanced error handling with NodeOperationError
  • Optimized object serialization

0.5.x

  • Legacy version using telepilot-tdl wrapper
  • TDLib-based implementation

Support

For issues, questions, or contributions:

License

MIT