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

n8n-nodes-telegram

v0.3.0

Published

Telegram MTProto (Telethon) integration for n8n

Readme

n8n-nodes-telegram

Community node para n8n com integração Telegram via Telethon usando um serviço Python local.

  • Homepage: https://github.com/ThalesTayson/n8n-nodes-telegram
  • Repository: https://github.com/ThalesTayson/n8n-nodes-telegram.git
  • Issues: https://github.com/ThalesTayson/n8n-nodes-telegram/issues

O que este pacote oferece

  • Credencial Telethon API Credentials com autenticação por telefone (código e 2FA)
  • Node Telethon Trigger para puxar eventos de mensagem recebida
  • Node Telethon Send Message para enviar texto e/ou arquivo (base64)

Pré-requisitos

  • Node.js 18+
  • Python 3.10+
  • Conta Telegram com api_id e api_hash

Como obter API ID e API Hash do Telegram

  1. Acesse https://my.telegram.org
  2. Faça login com o número da conta Telegram
  3. Entre em API Development Tools
  4. Crie uma aplicação (se ainda não tiver)
  5. Copie os campos:
    • api_id
    • api_hash

Configuração da credencial no n8n

Crie uma credencial do tipo Telethon API Credentials e preencha:

  • API ID: valor do api_id
  • API Hash: valor do api_hash
  • Phone: telefone em formato internacional (ex: 5511999999999)
  • Code: deixe vazio no primeiro teste
  • 2FA Password: preencha somente se sua conta tiver verificação em duas etapas

Fluxo de autenticação da credencial

  1. Clique em Test com Code vazio
    O Telegram envia o código e a resposta esperada é code_required.
  2. Preencha Code e clique em Test novamente.
  3. Se sua conta tiver 2FA e retornar 2fa_required, preencha 2FA Password e teste de novo.
  4. Com sucesso, a sessão fica autenticada para uso nos nodes.

Como funciona o Telethon Trigger

O Telethon Trigger:

  • Registra um listener no serviço Python ao iniciar
  • Recebe eventos do Telegram via webhook do n8n
  • Em teste manual, fica em Executing node... até chegar uma nova mensagem
  • Ao parar o teste/manual listening, faz unregister do listener

Como funciona o Telethon Send Message

O Telethon Send Message envia mensagens para um Chat ID usando a sessão da credencial.

Parâmetros:

  • Chat ID (obrigatório)
  • Message (opcional se File Base64 for informado)
  • File Base64 (opcional)
  • File Name (opcional, padrão file.bin)
  • Parse Mode (None, Markdown, HTML)
  • Reply To Message ID (opcional)
  • Silent (opcional)

Regras:

  • Você precisa informar Message ou File Base64
  • Se a sessão não estiver autenticada, o node retorna erro orientando a testar a credencial novamente

Troubleshooting rápido

  • Trigger fica em Executing node...: comportamento esperado até chegar mensagem nova.
  • Não recebe dados no trigger: valide se a credencial está autenticada e se o serviço Python está saudável em GET /health.
  • Erro de autenticação: refaça o Test da credencial com Code e, se necessário, 2FA Password.

Licença

MIT