n8n-nodes-mtproto-devdace
v0.1.0
Published
Telegram MTPROTO API integration for n8n (devdace fork) - real-time new message listening from all chats
Maintainers
Readme
n8n-nodes-mtproto-devdace
This is an n8n community node maintained by devdace that provides Telegram MTPROTO API integration for real-time message listening and automation workflows. The node extends the original veezex/n8n-nodes-telegram-mtproto project and focuses on stable delivery of all Telegram updates (personal chats, groups, supergroups, channels, bots) so you can build advanced workflows in n8n.
n8n is a fair-code licensed workflow automation platform.
Links
- npm:
npm install n8n-nodes-mtproto-devdace - GitHub: https://github.com/apipiyum-development/n8n-nodes-mtproto-devdace
- Original inspiration: https://github.com/veezex/n8n-nodes-telegram-mtproto
Installation
Follow the community nodes installation guide in the n8n docs.
Install from npm:
npm install n8n-nodes-mtproto-devdaceQuick Start
- Get your Telegram API credentials from https://my.telegram.org/apps
- Generate a session string using
bun run test:connection(see Credentials) - Create a Personal Telegram MTPROTO API credential in n8n (api_id, api_hash, phone number, session string)
- Add the Telegram MTPROTO Devdace Trigger node to your workflow
- Start the workflow and send a message from any chat (private/group/channel) — the trigger should emit the event in n8n immediately
Operations
Telegram MTPROTO Devdace Trigger
- Listens for every new message the authenticated Telegram account can access (personal chats, groups, supergroups, channels, bots)
- Emits raw message metadata plus convenience flags (
isPrivate,isGroup,isChannel) - Does not apply built-in filters so you can decide how to branch logic in your workflow
Credentials
Prerequisites
- Telegram account with access to https://my.telegram.org/apps
- Bun runtime installed (for session string generation)
Steps
- Visit https://my.telegram.org/apps and create/register an app
- Save your
api_idandapi_hash - Run the session helper:
bun install bun run test:connection - Follow the CLI prompts (phone number, verification code, 2FA password if any)
- Copy the generated session string into the n8n credential
Creating the credential in n8n
- Go to Credentials → New → Personal Telegram MTPROTO API
- Fill
api_id,api_hash,phoneNumber,sessionString - Save — you’re ready to use the trigger
Build & Development
This project uses Bun for installs and scripts.
bun install
bun run dev # watch mode
bun run build # compile to dist/
bun run lint # lint sources
bun run format # prettier fixTesting in n8n locally
- Build the node (
bun run build) - In your n8n instance, install the community node either from npm or via local files (Advanced → Community Nodes → Add)
- Configure the credential as described above
- Create a simple workflow: Telegram MTPROTO Devdace Trigger → Set → …
- Activate the workflow and send a message from another Telegram account to your main account (or in a group/channel)
- Verify the event payload inside n8n
Publishing to npm
- Update the version in
package.json(e.g.,0.1.1) - Run
bun run build - Login and publish:
npm login npm publish --access public
